Version: 2023.2
언어: 한국어

PrefabUtility.HasPrefabInstanceAnyOverrides

매뉴얼로 전환
public static bool HasPrefabInstanceAnyOverrides (GameObject instanceRoot, bool includeDefaultOverrides);

파라미터

instanceRoot The root GameObject of the Prefab instance to check.
includeDefaultOverrides Set to true to consider default overrides as overrides too.

반환

bool Returns true if there are any overrides.

설명

Returns true if the given Prefab instance has any overrides.

This method is the quickest way to check if a Prefab instance has any overrides, when not needing to know what those overrides are.

The includeDefaultOverrides parameter should normally be set to false, except for debugging purposes. If set to true, the method will normally return true for all Prefabs instances, since all Prefab instances have default overrides for the root position and rotation, among others.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961