LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

GameObject.isStatic

Switch to Manual
public bool isStatic;

Description

Editor only API that specifies if a game object is static.

Returns true if any of the static flags are set (See Also: GameObjectUtility.SetStaticEditorFlags).

setting this to true sets all the static flags (See Also: GameObjectUtility.SetStaticEditorFlags).