Skip to content

Instantly share code, notes, and snippets.

@SiunCyclone
Last active June 1, 2020 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SiunCyclone/7ed3aa5e4c3df5d7025782aa6228f914 to your computer and use it in GitHub Desktop.
Save SiunCyclone/7ed3aa5e4c3df5d7025782aa6228f914 to your computer and use it in GitHub Desktop.
// Assets/Scripts/Game/Modules/Character/Animation/AnimGraph/AnimGraph_AnimatorController.cs
[CreateAssetMenu(fileName = "AnimatorController", menuName = "FPS Sample/Animation/AnimGraph/AnimatorController")]
public class AnimGraph_AnimatorController : AnimGraphAsset {
public RuntimeAnimatorController animatorController;
public override IAnimGraphInstance Instatiate(EntityManager entityManager, Entity owner, PlayableGraph graph, Entity animStateOwner) {
var animState = new Instance(entityManager, owner, graph, animStateOwner, this);
return animState;
}
class Instance : IAnimGraphInstance {
// 略
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment