Hi,
I have created a bunch of hotspots with AddComponent->Hotspot instead of adding them via Scene-Prefabs tab in AC Game Editor window. These hotspots don't show the yellow label in the editor.
Is there a function I could call from a custom editor script, which registers these hotspots, so they are shown with the yellow label in the editor too?
Thanks! Alex
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
The default yellow labels come from the Hotspot prefab having a label gizmo assigned at the top of its Inspector.
Adding such a gizmo programatically is a bit tricky, but can be done through reflection. It's not related to AC, but scripts to help achieve this can be found here:
https://answers.unity.com/questions/542890/scene-color-object-marking.html
Ah of course! Thanks a lot, Chris