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.

GameObjectUtility.AreStaticEditorFlagsSet

public static bool AreStaticEditorFlagsSet(GameObject go, StaticEditorFlags flags);

Parameters

goThe GameObject to check.
flagsThe flags you want to check.

Returns

bool Whether the GameObject's static flags match the flags specified.

Description

Returns true if the passed in StaticEditorFlags are set on the GameObject specified.