/// <summary> /// Default constructor, which sets the default /// values for the various glTF import options. /// </summary> public GltfImportOptions() { ShowModelAfterImport = true; AutoScale = false; AutoScaleSize = 1f; ImportAnimations = true; AnimationClipType = AnimationClipType.Mecanim; }
public ECSGpuInstancedAnimationClip(AnimationClipType type, int startFrame, int endFrame, int frameCount, GpuInstancedAnimationClip.WrapMode wrapMode) { Type = type; StartFrame = startFrame; EndFrame = endFrame; FrameCount = frameCount; WrapMode = wrapMode; OffsetFrame = 0; CurrentTime = 0; CurrentFrame = 0; }
public void PlayMoveAnimation(AnimationClipType type) { if (IsDie) { return; } switch (type) { case AnimationClipType.Idle: m_Animator.SetInteger(State, 0); break; case AnimationClipType.Move: m_Animator.SetInteger(State, 1); break; default: m_Animator.SetInteger(State, 0); break; } }
internal AnimationClip(AnimationClipType clipType, int bone, Keyframe[] keyframes) { ClipType = clipType; Bone = bone; Keyframes = keyframes; }