From 8519b2e4ce8105c211e2989adea8659bbe63f082 Mon Sep 17 00:00:00 2001 From: Voyage Date: Wed, 22 Jun 2022 17:41:44 +0200 Subject: [PATCH] Particles: Fixed a warning about BlendTree children speed Given that search engines returned nothing very useful on that matter : To avoid the error message : "BlendTree child should not have a speed of 0" Just set the ChildMotion timeScale to 1. Signed-off-by: Voyage --- ParticleSystem/SetupObjectParticles.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ParticleSystem/SetupObjectParticles.cs b/ParticleSystem/SetupObjectParticles.cs index 6c21c76..23117f6 100644 --- a/ParticleSystem/SetupObjectParticles.cs +++ b/ParticleSystem/SetupObjectParticles.cs @@ -239,8 +239,8 @@ private bool StateMachineSetupRotate(AnimatorStateMachine machineRotate) name = "RotateParticle", children = new ChildMotion[] { - new ChildMotion() { motion = clips[(int)ClipIndex.ROTATE0], threshold = 0}, - new ChildMotion() { motion = clips[(int)ClipIndex.ROTATE360], threshold = 1} + new ChildMotion() { motion = clips[(int)ClipIndex.ROTATE0], threshold = 0, timeScale = 1}, + new ChildMotion() { motion = clips[(int)ClipIndex.ROTATE360], threshold = 1, timeScale = 1} } }; assetManager.GenerateAsset(rotationTree, "RotateParticle.asset");