Hi
I have an in game UI which shows the inventory on the screen. When the player receives the computer cuff, the in game UI shows with a bouncing in effect. Technically, the UI is made active but it's position is just beneath the visible screen, and I use the excellent DoTween to bounce the various components in. I use DoTween as I'm crap at animation and the animated version was too stiff.
However, this means that I can't use a Remember Animator component. The Remember Transform component doesn't seem to remember the position of the RectTransform and there isn't a Remember RectTransform component (though a great feature request there).
Is there a way I can write my own Remember script to remember the position of this and have the UI grab that from the save file at Load time?
Any advice here?
Olly
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Yes, it's possible to implement Remember components to save custom data. A tutorial can be found here.
Adapting RememberTransform to also work with RectTransforms, however, is a great suggestion - I'll give this some thought and see if it's possible to extend it in this way.
I've done some tests, and the Remember Transform appears to work OK with RectTransform components. There may be another factor at play on your end, here.