- Home /
Queue Components
I am trying to make a Queue of Components. I want to add Components to a Queue, and only have the Component in the front of the Queue run. The Components will self-destruct after they finish their run.
How can I create a Component without activating it immediately? Or am I going about this the wrong way?
what is your final goal ? can you explain more about what your about to do ? is it your approach to mount a queue of Components on a single Gameobject ?
$$anonymous$$y longterm goal is to make an extensions script to enque components on a gameObject...my short-term goal is to create a Component without adding it to a script. Your answer should be a comment...it is not an answer.
Any component or specifically $$anonymous$$onobehavour descendants?
Answer by hexagonius · Sep 27, 2018 at 09:31 PM
Why do they have to be components? I would create the one managing component that receives all necessary Unity calls and directs them to the current queue top. the queue would consist of regular C#, non monobehaviour base classes. this way it's just "new" and "delete from queue" and boom, done.
Your answer

Follow this Question
Related Questions
2D Animation does not start 1 Answer
Disable components in runtime per quality setting ? 1 Answer
Why am I getting this error ? 2 Answers
Simple text in inspector components? 2 Answers
GetComponent(); issue 1 Answer