‎2025-11-26 09:53 AM
I have an object that calls another object in its 2D script. Is it possible to hide the hotspots generated by the called object since they aren't relevant to the parent object?
Solved! Go to Solution.
‎2025-11-26 10:03 AM
Yes.
In the object to be called, you must add boolean parameter to show/hide the hotspots.
Then contain the hotspot scripts in an IF/THEN statement based on that boolean parameter.
So now you can turn them on/off in that object at will.
You would set the default value for that parameter to show the hotspots, so you will see them if you place that actual object without calling it.
Now in the object that does the calling, you pass on the value to that parameter to turn off the hotspots.
Barry.
‎2025-11-26 10:03 AM
Yes.
In the object to be called, you must add boolean parameter to show/hide the hotspots.
Then contain the hotspot scripts in an IF/THEN statement based on that boolean parameter.
So now you can turn them on/off in that object at will.
You would set the default value for that parameter to show the hotspots, so you will see them if you place that actual object without calling it.
Now in the object that does the calling, you pass on the value to that parameter to turn off the hotspots.
Barry.