示例#1
0
        void Start()
        {
            if (skinnedMeshRenderer == null)
            {
                Debug.LogError("SkinnedMeshRendererが指定されていません。", this);
            }

            context = GetComponent <OVRLipSyncContextBase>();
            if (context == null)
            {
                Debug.LogError("同じGameObjectにOVRLipSyncContextBaseを継承したクラスが見つかりません。", this);
            }

            // LowLatencyLipSyncContext以外でも動くようにしておくこと
            lowLatencyLipSyncContext = context as LowLatencyLipSyncContext;
        }
 void OnEnable()
 {
     context        = (LowLatencyLipSyncContext)target;
     deviceProperty = serializedObject.FindProperty("_selectedDevice");
 }