PrefabType 预置类型

转载自: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

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


  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值