Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetPrefabType(Object)

Given an object, returns its Prefab type (None, if it's not a Prefab).
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
Warning
Deprecated. Use GetPrefabAssetType and GetPrefabInstanceStatus to get the full picture about Prefab types.
public static PrefabType GetPrefabType(Object target)

Parameters

target

Returns

Type

Description

PrefabType

Remarks

Additional Resources: The PrefabType enumeration for information on the possible return values.