how to set the tag to an object in code ?
Posted: Fri Jun 19, 2020 9:46 am
Hi all,
having an issue with finding a way to associate tags with objects in a script.
getTagByName returns a GlobalDataItem representing the tag, thats the only way i found i can find tags without explicitly pointing them out in Globals.Tags...
if i would want to use script to set the tag in the object (multiplr times to same object), how would i do this?
is there a get set pair for this?
I am talking about this tag in hte options, I want to do this via script:
anyone knows how can i get to these get/set for all objects?
having an issue with finding a way to associate tags with objects in a script.
getTagByName returns a GlobalDataItem representing the tag, thats the only way i found i can find tags without explicitly pointing them out in Globals.Tags...
if i would want to use script to set the tag in the object (multiplr times to same object), how would i do this?
is there a get set pair for this?
Code: Select all
void MyScreen_Opened(System.Object sender, System.EventArgs e)
{
object.SETTAG( getTagByName("MY_TAG_NAME") );
GlobalDataItem TAG_FROM_OBJECT = object.GETTAG();
}
anyone knows how can i get to these get/set for all objects?