コード例 #1
0
        public void Initialize(
            IVRMLoadable vrmLoadable,
            ExternalTrackerDataSource exTracker,
            BlendShapeInitializer initializer,
            WordToMotionBlendShape wtmBlendShape
            )
        {
            _exTracker     = exTracker;
            _initializer   = initializer;
            _wtmBlendShape = wtmBlendShape;

            vrmLoadable.VrmLoaded += info =>
            {
                _blendShape = info.blendShape;
                _hasModel   = true;
            };

            vrmLoadable.VrmDisposing += () =>
            {
                _hasModel   = false;
                _blendShape = null;
            };
        }
コード例 #2
0
 private void Start()
 {
     _initializer = FindObjectOfType <BlendShapeInitializer>();
 }