Im having trouble getting animation playback info.
I would like to know when my animation has stopped playing. Using the "pack_player.isPlyaing" I always get a return value True (whether the animation is playing, or if it has stopped). Bellow is my simple code. In the Creature Pack Renderer I have "Sholud_Loop" - Off, and "Should_play" - ON.
Any ideas what im missing?
Thank you
Code: Select all
public class SplashScreen : MonoBehaviour
{
public bool started = false;
CreaturePackRenderer creature_renderer;
// Start is called before the first frame update
void Start()
{
creature_renderer = GetComponentInChildren<CreaturePackRenderer>();
}
// Update is called once per frame
void Update()
{
if (creature_renderer.pack_player.isPlaying == true)
{
Debug.Log(creature_renderer.pack_player.isPlaying);
}
if (creature_renderer.pack_player.isPlaying == false)
{
Debug.Log(creature_renderer.pack_player.isPlaying);
}
}