How to determine unID of the currently edited HOTSPOT ?
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-06-28 08:52 PM
‎2019-06-28
08:52 PM
And I create hotspots for it's items in loop.
I need to determine what item of my array currently graphical edited in 2d.
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-07-01 03:14 AM
‎2019-07-01
03:14 AM
Within the loop, or a loop that matches the one that is drawing your object, add ": unID = unID + 1" after your hotspot.
Ling
hotspot2 a, b, unID, [parameter], [type] : unid = unid + 1
Ling
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-07-02 09:07 AM
‎2019-07-02
09:07 AM
If i understand you issue correctly, you have multiple editable hotspots created from an array parameter and you wish to identify what number of the loop you are selecting.
For this I'd suggest using the custom description feature as follows...
hotspot2 x, y, unID, parameter, type, displayparameter, "custom description" : unID=unID+1
You could replace custom description with your 'unID' value or your 'i' value, but whatever you put there it must be a string (you have to convert 'unID' and 'i')
the display parameter can just be the same as parameter, but it neesd to be present to set the "custom description"
Happy Hunting
For this I'd suggest using the custom description feature as follows...
hotspot2 x, y, unID, parameter, type, displayparameter, "custom description" : unID=unID+1
You could replace custom description with your 'unID' value or your 'i' value, but whatever you put there it must be a string (you have to convert 'unID' and 'i')
the display parameter can just be the same as parameter, but it neesd to be present to set the "custom description"
Happy Hunting
AC 24 5004 AUS
iMac OSX (10.13.6) 4.2ghz i7
8gb ram/8gb vram
iMac OSX (10.13.6) 4.2ghz i7
8gb ram/8gb vram