- Home /
Question by
Tyler 2 · Nov 25, 2010 at 02:04 AM ·
instantiate
object count cap?
Is there a way to set a cap on the amount of objects with a certain tag that are instantiated in the scene at a certain time (and override whatever script is controlling the instantiating?)
Comment
Answer by Dreamora · Nov 25, 2010 at 07:45 AM
Write a manager that creates the instances and that ensures that no new ones are created if a given count is reached.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Creating an object and setting fields before object begins running 1 Answer
How to Select between two prefabs randomly ? 1 Answer
Instantantiate relative to parents position 1 Answer
AddComponent() causes a "trying to create a MonoBehaviour using the 'new' keyword" warning 2 Answers