PrefabType 预置类型

来源:互联网 发布:大数据的真正意义是 编辑:程序博客网 时间:2024/06/06 02:38

转载自:http://game.ceeger.com/Script/Editor_Enumerations/PrefabType/PrefabType.html

The type of a prefab object as returned by EditorUtility.GetPrefabType.

预置物体的类型,由EditorUtility.GetPrefabType返回。

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.
注意:这是一个编辑器类,如果想使用它你需要把它放到工程目录下的Assets/Editor文件夹下。编辑器类在UnityEditor命名空间下。所以当使用C#脚本时,你需要在脚本前面加上 "using UnityEditor"引用。

Values

  • None
    The object is not a prefab nor an instance of a prefab.
    物体不是一个预制,也不是一个预制的实例。 
  • Prefab
    The object is a user created prefab asset.
    物体是用户创建的预置资源。 
  • ModelPrefab
    The object is an imported 3D model asset.
    物体是一个导入到3D模型资源。 
  • PrefabInstance
    The object is an instance of a user created prefab.
    物体是一个用户创建的预置的实例。 
  • ModelPrefabInstance
    The object is an instance of an imported 3D model.
    物体是一个导入3D模型预置的实例。 
  • MissingPrefabInstance
    The object was an instance of a prefab, but the original prefab could not be found.
    物体是一个预置的实例,但是源预置没有发现。 
  • DisconnectedPrefabInstance
    The object is an instance of a user created prefab, but the connection is broken.
    物体是用户创建的预置的实例,但连接断开。 
  • DisconnectedModelPrefab...
    The object is an instance of an imported 3D model, but the connection is broken.
    物体是一个导入3D模型的实例,但连接断开。 


0 0