Return to Unity Plugin

Show animation and hide another in the same frame

All about Unity plug-in

Show animation and hide another in the same frame

Postby Petr Kavan » February 21st, 2018, 1:25 am

I am sure that I have read something about this issue, but I can't find it now. I have two different GAF animations, and I want to hide first one and start the second one in one frame, so that they would look "joined". I hide animation by
Code: Select all
co.serializedProperties.visible = false;
co.reload();


and show by

Code: Select all
co.serializedProperties.visible = true;
co.reload();


, where 'co' is corresponding GAFObject . It works, but even when both hide and show is done in one frame, I get one-frame glitches when neither animation is visible. First one is hidden, and second one not yet shown. But I don't get it always, only sometimes. Question - what should I do to show and hide exactly in same frame?
User avatar
Petr Kavan
 
Posts: 17
Joined: November 21st, 2017, 5:06 am

Return to Unity Plugin

Who is online

Users browsing this forum: No registered users and 1 guest