示例#1
0
        void SwitchMeshDisplayMode(MeshDisplayMode meshDisplayMode)
        {
            this.meshDisplayMode = meshDisplayMode;

            switch (meshDisplayMode)
            {
            case MeshDisplayMode.None:      //Hidden
                StaticMeshScript.SwitchModeScript.SwithMode(DualCameraDisplayMode.MIX);
                StaticMeshScript.RenderModelMesh(false);
                HintText.text = "See-Through";
                break;

            case MeshDisplayMode.Collider:
                StaticMeshScript.SwitchShowCollider(ShowMode.All);
                HintText.text = "View Colliders";
                break;

            case MeshDisplayMode.VRMode:
                StaticMeshScript.SwitchShowCollider(ShowMode.None);
                StaticMeshScript.SwitchModeScript.SwithMode(DualCameraDisplayMode.VIRTUAL);
                StaticMeshScript.RenderModelMesh(true);
                HintText.text = "View Texture";
                break;
            }
        }