๐Animator Profiles
In this section you will learn about new layer system.
Last updated
private void EquipWeapon()
{
...
_fpsAnimator.LinkAnimatorProfile(gun.gameObject);
...
}protected void LinkAnimationLayers()
{
foreach (var setting in _newProfile.settings)
{
var job = setting.CreateAnimationJob();
if (job == null) continue;
job.Initialize(_layerJobData, setting);
job.UpdateEntity(_entity);
var playable = job.CreatePlayable(_playablesController.playableGraph);
_animationLayers.Add(new AnimationLayer()
{
job = job,
playable = playable
});
}
}