コード例 #1
0
ファイル: DebugCommands.cs プロジェクト: unity3d-jp/MeshSync
    static void CreateMeshSyncServerWithCallback()
    {
        GameObject     go     = new GameObject("MeshSyncServer");
        MeshSyncServer server = go.AddComponent <MeshSyncServer>();

        server.SetAutoStartServer(true);
        server.SetOnPostRecvMessageCallback(OnRecvServerMessage);
    }
コード例 #2
0
        internal static MeshSyncServer CreateMeshSyncServer(bool autoStart)
        {
            GameObject     go  = new GameObject("MeshSyncServer");
            MeshSyncServer mss = go.AddComponent <MeshSyncServer>();

            mss.Init(MeshSyncConstants.DEFAULT_ASSETS_PATH);
            mss.SetAutoStartServer(autoStart);
            return(mss);
        }
コード例 #3
0
        internal static MeshSyncServer CreateMeshSyncServer(bool autoStart)
        {
            GameObject     go  = new GameObject("MeshSyncServer");
            MeshSyncServer mss = go.AddComponent <MeshSyncServer>();

            mss.Init("Assets/MeshSyncAssets");
            mss.SetAutoStartServer(autoStart);
            return(mss);
        }
コード例 #4
0
//----------------------------------------------------------------------------------------------------------------------
        internal static MeshSyncServer CreateMeshSyncServer(bool autoStart)
        {
            GameObject     go  = new GameObject("MeshSyncServer");
            MeshSyncServer mss = go.AddComponent <MeshSyncServer>();
            Transform      t   = go.GetComponent <Transform>();

            mss.SetAutoStartServer(autoStart);
            mss.rootObject = t;
            return(mss);
        }