It is in UnityEditor namespace which cannot work at runtime.
How to optimize game objects at runtime and exposing extra transforms ?
It is in UnityEditor namespace which cannot work at runtime.
How to optimize game objects at runtime and exposing extra transforms ?
Why not just do this in the editor, why at runtime? I mean, exposing transforms and optimizing the gameobject in general instead of at runtime would have the same result.
It is because it is a customizable character in editor that is generated at runtime.
God, a three year old thread? I really hope Unity can make this API runtime. Transform information is needed to combine mesh at runtime, for those they can only do optimize-gameobject at runtime