- Home /
how to create ID to script ??
how to create id to script, so we can find the script by id,
public string iD;
public static string iDStatic;
private void Start()
{
iDStatic = iD;
}
its something like tag, but move scriptable,, thanks,,
Comment
What are you trying to do exactly? The FindObjectOfType
retrieves the active objects with a given component type.
There are several solutions around here to create unique IDs for individual GameObjects
FindObjectOfType, yes i know that, but sometimes i use same script in one object,,
Your answer
Follow this Question
Related Questions
Creating a single-line function for GameObject.Find and GetComponent (for multiple components) 3 Answers
Need an advise, how to find all objects with a specific name and a specific script? 2 Answers
Getcomponent error? 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers