Search found 3 matches

by Willy Wonka
Wed Jan 18, 2023 6:07 am
Forum: General Discussion
Topic: Saving a RectTransform by value?
Replies: 5
Views: 1043

Re: Saving a RectTransform by value?

Hi Joel, Thanks for the advice! I managed to get it working after some pain. For anyone curious about how I did this, here's a fraction of the code that shows the general idea: I added this to the ActorRuntimeData class: public class ActorRuntimeData { public RectTransform rectTransform; public void...
by Willy Wonka
Wed Jan 04, 2023 10:00 pm
Forum: General Discussion
Topic: Saving a RectTransform by value?
Replies: 5
Views: 1043

Re: Saving a RectTransform by value?

Will ES3.LoadInto work for dictionaries if the number of elements don't match? I'm currently saving this dictionary: public Dictionary<string, ActorRuntimeData> activeActors; ActorRuntimeData has the RectTransform instance: public class ActorRuntimeData { public RectTransform rectTransform; } The di...
by Willy Wonka
Wed Jan 04, 2023 6:19 am
Forum: General Discussion
Topic: Saving a RectTransform by value?
Replies: 5
Views: 1043

Saving a RectTransform by value?

Hello, I'm currently trying to save a RectTransform without saving it to a reference in the scene, as the RectTransform is part of a GameObject that is dynamically created at runtime, so the reference will not be there upon load. One thing I thought of is to create a temporary class or struct that h...