Skip to content

PrimeTweenManager always appears under DoNotDestroyOnLoad #130

Closed Answered by KyryloKuzyk
zemrearslan asked this question in General
Discussion options

You must be logged in to vote

Hey! Yes, this is an intended behavior. The idea is that PrimeTween allocates memory once at the start of your game to prevent any hiccups in the future once the game decides to animate something.

There is no way to prevent PrimeTweenManager from spawning for simplicity reasons. But if you want to reduce PrimeTween's memory footprint to the minimum when your game starts, you can call PrimeTweenConfig.SetTweensCapacity(0) at the start of your game.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zemrearslan
Comment options

Answer selected by KyryloKuzyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants