cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
BrentG
Participant

Can hotspots of a called object be hidden?

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?

1 Solution

Accepted Solutions
Barry Kelly
Moderator

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.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Go to post

1 Reply 1
Barry Kelly
Moderator

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.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!