0
The command FindObjectsOfType
can find objects by a specific type.
I wonder if it can find objects by a variable value.
For example: Find objects that have the variable x with a value of 10.
0
The command FindObjectsOfType
can find objects by a specific type.
I wonder if it can find objects by a variable value.
For example: Find objects that have the variable x with a value of 10.
Browser other questions tagged unity3d
You are not signed in. Login or sign up in order to post.
I doubt that there is any method already established to do what you want, the best is to create an object cycle and check if there is the value of the variable you want.
– lazyFox
By the way, what is the need to search an object like this. What do you want to do?
– lazyFox