- Home /
Question by
Guerrero-Survivor · Dec 13, 2015 at 02:52 PM ·
gameobjecteditor-scriptingstatic batching
How to get the particular static state(s) of a certain GameObject via script?
Hello everybody!
I'm writing the script for the Unity Editor. I want to know how to determine whether a certain GameObject instance has the particular static flag being set to true or false. I mean the following thing:
I know that the GameObject class has the property called "isStatic", but it returns true if there's at least one static flag from the whole flags list is set. However, I need to check only the particular flag (e.g., "Batching Static)" in my script.
static-popup-list.png
(20.1 kB)
Comment