Unity3D With Meteor

20
UNITY3D WITH METEOR TRINH DUC HUY 06/21/2022 UNITY WITH METEOR - TRINH DUC HUY 1

Transcript of Unity3D With Meteor

Page 1: Unity3D With Meteor

05/01/2023 UNITY WITH METEOR - TRINH DUC HUY 1

UNITY3D WITH METEOR

TRINH DUC HUY

Page 2: Unity3D With Meteor

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 2

SUMMARYA glance about Unity3D and Meteor

Meteor with Unity3D Desktop and Mobile

Meteor with Unity3D WebGL

Demo

Page 3: Unity3D With Meteor

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 3

Realtime

Open source

Simple

MongoDb

Page 4: Unity3D With Meteor

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 4

Game Engine

Cross Platform

Large Communi

ty

C# & Javascrip

t

Page 5: Unity3D With Meteor

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 5

WHY USING METEORJS AS GAME SERVER■ No SQL database support.■ Collections and Methods■ Free and fast to deploy a server.

Page 6: Unity3D With Meteor

05/01/2023 UNITY WITH METEOR - TRINH DUC HUY 6

METEOR WITH UNITY3D MOBILE

Page 7: Unity3D With Meteor

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 7

HIDDENSWITCH PLUGIN

■ Document : http://hiddenswitch.github.io/Meteor-Unity/annotated.html

■ Github : https://github.com/hiddenswitch/Meteor-Unity

Page 8: Unity3D With Meteor

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 8

hiddenswitch

Accounts

Collection

Connection

Cursor

Error

LoginResult

Method

Mongo Documen

t

Observe

Subscribe

Page 9: Unity3D With Meteor

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 9

CONNECT

Page 10: Unity3D With Meteor

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 10

SUBSCRIPTION

Page 11: Unity3D With Meteor

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 11

METHOD

Page 12: Unity3D With Meteor

05/01/2023 UNITY WITH METEOR - TRINH DUC HUY 12

METEOR WITH UNITY3D WEBGL

Page 13: Unity3D With Meteor

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 13

INTERACTIVE WITH JAVASCRIPT■ Call from outside javascript to inside Unity3D.– SendMessage ('MyGameObject', 'MyFunction',

'foobar');■ Call from inside Unity3D to outside Javascript .– Application.ExternalCall();

Page 14: Unity3D With Meteor

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 14

BLAZE

METEOR CODE

UNITY WEBGL

GAME OBJECT : A

Page 15: Unity3D With Meteor

05/01/2023 UNITY WITH METEOR - TRINH DUC HUY 15

DEMO

Page 16: Unity3D With Meteor

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 16

QUICK GLANCE

■ Connect to server will auto create player■ Sync data from all other client■ When current client have input will send command

to all other client

Page 17: Unity3D With Meteor

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 17

ARCHITECTURE

■ 2 Collections– Players : Current state of all client – Commands : This collection use for change client’s

state■ 2 Methods– createPlayer : Call when connect to server– insertComand : Call when client update something

will notify to server

Page 18: Unity3D With Meteor

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 18

UNITY3D SETUP

■ Needed folder – Atlases– Plugins– Prefabs– Resources– Scenes– Textures

Page 19: Unity3D With Meteor

05/01/2023

UNITY WITH METEOR - TRINH DUC HUY 19

UNITY3D PLUGINS

■ JSON.NET■ Meteor-Unity■ NGUI ■ Pixel placement

Page 20: Unity3D With Meteor

05/01/2023 UNITY WITH METEOR - TRINH DUC HUY 20

THANK YOU