• Unity
  • Skeleton animation culling mode

Is there a way to setup culling mode for skeleton animation?

Related Discussions
...
  • Düzenlendi

Currently, not out of the box. There isn't quite a 1:1 with how Unity culls things.

You can detect visibility, via OnBecameVisible or OnBecameInvisible on a separate MonoBehaviour, or your game-specific logic, then set SkeletonAnimation's .enabled property accordingly. Custom culling code is important especially if you want it to be a bit smarter about when its movements stops progressing or emitting sounds or events.

For simple things like environment stuff, OnBecameVisible or OnBecameInvisible should be enough.

great, thanks for answer!