New tiles don't auto-rename without pressing Play

Just as the title suggests, I’m on the prefab variant lecture, and when Gary drags new prefab tiles into the scene, they are auto-renamed to their coordinates, but when I do it, I just get the prefab name UNTIL I press the play button, then tiles rename correctly and remain with their new names. I’m worried I coded something wrongly. Does anyone know what the issue might be?

1 Like

Hi,

Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture? Do you have the [ExecuteAlways] attribute in your code? Which version of Unity do you use? The same as Gary?

Sorry, my bad - I should have checked. UpdateObjectName was in Awake, not update.

Thanks for pointing me in the right direction!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms