public void Init(SkinnedMeshRenderer skinnedMesh, MorphAnimationData data, MorphAnimator animator)
        {
            _skinnedMeshRenderer = skinnedMesh;
            _morphAnimationData  = data;
            _morphAnimator       = animator;

            _currentClip       = null;
            _currentKeyframe   = null;
            _currentBone       = null;
            _currentBoneParent = null;
            _keepingDistance   = 0;

            _isRecord                   = false;
            _isPreview                  = false;
            _previewIndex               = 0;
            _previewLocation            = 0;
            _isRenameClip               = false;
            _newNameClip                = "";
            _keyframeView               = Vector2.zero;
            _clipSizeWidth              = 150;
            _clipSizeHeight             = 30;
            _moveCenter                 = Vector2.zero;
            _keyframePropertyViewWidth  = 0;
            _keyframePropertyViewHeight = 0;
            _keyframePropertyView       = Vector2.zero;
            _boneNameFiltrate           = "";
            _clipPropertyViewWidth      = 0;
            _clipPropertyViewHeight     = 0;

            ReviewClips();
        }
Exemplo n.º 2
0
 private void OnEnable()
 {
     _morphAnimator = target as MorphAnimator;
 }