コード例 #1
0
 public BlendShapeJitterDamper(BlendShapeJitterImpl manager, int index, string name, float weightMagnification)
 {
     this.index = index;
     this.name  = name;
     this.weightMagnification = weightMagnification;
     Initialize(manager);
 }
コード例 #2
0
        public void SetMorphName(BlendShapeJitterImpl manager)
        {
            if (this.manager == null)
            {
                Initialize(manager);
            }

            var sharedMesh = this.manager.skinnedMeshRenderer.sharedMesh;

            index = Mathf.Min(index, sharedMesh.blendShapeCount - 1);
            name  = (index >= 0) ? sharedMesh.GetBlendShapeName(index) : "";
        }
コード例 #3
0
 public void Initialize(BlendShapeJitterImpl manager)
 {
     this.manager = manager;
 }
コード例 #4
0
 public void Initialize(BlendShapeJitterImpl manager)
 {
     this.manager = manager;
     loopState    = new State(manager.loopParameter);
     onceState    = new State(manager.onceParameter);
 }