Пример #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;
 }
 public void Initialize(BlendShapeJitterImpl manager)
 {
     this.manager = manager;
     loopState    = new State(manager.loopParameter);
     onceState    = new State(manager.onceParameter);
 }