Krblshna

Is there a way to setup culling mode for skeleton animation?
User avatar
Krblshna
  • Posts: 12

Pharan

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.
User avatar
Pharan
  • Posts: 5366

Krblshna

great, thanks for answer!
User avatar
Krblshna
  • Posts: 12


Return to Unity