- Home /
.js find GameObject with Regex wildcard tag ("*wall")
it would be convenient:)
Answer by flberger · Aug 21, 2013 at 01:05 PM
Currently (Unity 4.2) this is not possible.
The prefered way is to use tags on game objects.
See this forum thread for reference: Regex within scripts
This could be done with some scripting, but the performance would be really bad. As flberger said, tags are the preferred way: FindGameObjectsWithTag is faster than any string based search, probably because tags are internally stored as simple integers.
Your answer
Follow this Question
Related Questions
How to replace a word inside a string with different white space combos? 0 Answers
Allow only numbers in an input field 1 Answer
Creating a card game. Best ways to interpret the various cards? 1 Answer
Replace() with string and Regex not replacing numbers/integers 2 Answers
Substring Exception 1 Answer