- Home /
Instantiate vs CreatePrimitive
Hello,
I am making a grid using quads. So one way of doing it if I use Instantiate and create clones of the quad prefab or simply create with code one CreatePrimitive quad and than use it as an object to instantiate.
The Second way is by instead of instantiating clones of the object simply using CreatePrimitive for every object.
I want to know which one is more efficient, which is better for code optimization?!
Thank you in advance.
Answer by wewewu · Jun 13, 2020 at 01:13 PM
If you are creating a lot easy objects, I recommend CreatePrimitve, since it is over 10 times faster than instantiating.
Your answer
Follow this Question
Related Questions
Keeping track of which areas remain unexplored 1 Answer
remove and replace item in grid 1 Answer
How to use the same object more than once at the same time when using an "object pooling" pattern? 3 Answers
Optimizing a massive array of GameObjects pls help 1 Answer
[SerializeField] for self components instead of GetComponent<>? 1 Answer