ReplacePrefabOptions 替换预置选项
Enumeration
Flags for the EditorUtility.ReplacePrefab function.
用于EditorUtility.ReplacePrefab函数。
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值
-
Replaces prefabs by matching pre-existing connections to the prefab.
替换匹配已存在连接的预置。 -
Connects the passed objects to the prefab after uploading the prefab.
上传预置之后,连接传递的物体到预置。 -
Replaces the prefab using name based lookup in the transform hierarchy.
使用基于名称在transform层级查找替换预置。 -
Automatically finds the prefab instance root of the provided game object and uses that as the root for the replaced prefab instead
自动查找预置实例游戏物体所提供的根并作为根替换预置,而不是根游戏物体传递到ReplacePrefab。
最后修改:2011年7月19日 Tuesday 16:35