public BlendShapeJitterDamper(BlendShapeJitterImpl manager, int index, string name, float weightMagnification) { this.index = index; this.name = name; this.weightMagnification = weightMagnification; Initialize(manager); }
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) : ""; }
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); }