Last active
June 1, 2020 15:50
-
-
Save SiunCyclone/7ed3aa5e4c3df5d7025782aa6228f914 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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