浏览代码

Fix warnings caused by animation randomizer running on disabled GameObjects (#268)

/0.8.0-preview.1_staging
GitHub 4 年前
当前提交
e5e04a10
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
      com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/AnimationRandomizer.cs

3
com.unity.perception/Runtime/Randomization/Randomizers/RandomizerExamples/Randomizers/AnimationRandomizer.cs


void RandomizeAnimation(AnimationRandomizerTag tag)
{
if (!tag.gameObject.activeInHierarchy)
return;
var animator = tag.gameObject.GetComponent<Animator>();
animator.applyRootMotion = tag.applyRootMotion;

正在加载...
取消
保存