- Home /
Is it possible to set the GameObject to static in Runtime?
Or, if the GameObject moves once, do not need to set it to static?
Answer by Multirezonator · Nov 29, 2017 at 05:04 PM
From Unity documentation:
Answer is NO, you can't set object to static at runtime.Many optimisations need to know if an object can move during gameplay. Information about a Static (ie, non-moving) object can often be precomputed in the editor in the knowledge that it will not be invalidated by a change in the object’s position. For example, rendering can be optimised by combining several static objects into a single, large object known as a batch.
Your answer
![](https://koobas.hobune.stream/wayback/20220612143615im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to get the particular static state(s) of a certain GameObject via script? 0 Answers
Switching GameObject between static and non-static 2 Answers
using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers
GetComponent of ALL clones? 2 Answers
Projectile not 'projecting' because i have to use "var xxx : GameObject = Instantiate" 2 Answers