what variable do i need to access to check which state my UIStateToggleBtn has changed to?
this is what i wana implement
if ( STATE 0 )
{
// do this
}
ELSE IF ( STATE 1 )
{
// then do this
}
thank you
what variable do i need to access to check which state my UIStateToggleBtn has changed to?
this is what i wana implement
if ( STATE 0 )
{
// do this
}
ELSE IF ( STATE 1 )
{
// then do this
}
thank you
Typically StateNum would be the value. If you are using this in conjunction with the code in your last question, you can save the value from MySetState() and access that instead. Since the states are implemented as animations, you can also dig down to get the animation frame number:
int state = uitb.animations[0].GetCurrentPosition();
Omg perfect idea...why didnt I think of that
– samz