On Localize Callback is lost in play mode

More
3 years 6 months ago #1235 by [Greyborn]asilva
I have setup an On Localize Callback through the inspector for a callback that is on one of the other scripts attached to the same object as the Localize component is. When I go into play mode after setting it, that field becomes "None" and my callback reference is lost (even after stopping out of play mode). If I set it at runtime, the function is called as expected, but the reference does not persist. Is there a common error I might be making that would be causing this to happen?

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #1236 by Frank
Hi,
There was a bug where some variables (including the Localization Callback) where not dirtying the scene, so unity wasn't detecting the change if nothing else changed.

I submitted a fix into 2.6.4 b2 but that version hasn't been approved yet by the AssetStore.
Nonetheless, you can download it right away from the beta folder.

Hope that helps,
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The following user(s) said Thank You: [Greyborn]asilva

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #1246 by [Greyborn]asilva
That fixed it, thank you!

Please Log in or Create an account to join the conversation.

Time to create page: 0.282 seconds
Template by JoomlaShine