提交 b8468647 编写于 作者: A Adrian T

* Open development branch to add support for the new prefab workflow.

上级 e9838894
......@@ -373,7 +373,7 @@ bool UnshareNavMeshAsset()
return false;
// An instance can share asset reference only with its prefab parent
var prefab = UnityEditor.PrefabUtility.GetPrefabParent(this) as NavMeshSurface;
var prefab = UnityEditor.PrefabUtility.GetCorrespondingObjectFromSource(this) as NavMeshSurface;
if (prefab != null && prefab.navMeshData == navMeshData)
return false;
......
m_EditorVersion: 2018.1.0b1
m_EditorVersion: 2018.2.0a8
> This branch requires **Unity 2018.1**. For older or future versions of Unity please use a matching branch ([master](../..), [5.6](../../tree/5.6), [2017.1](../../tree/2017.1)).
> ⚠️ The code in this branch is not fully compatible with any publicly-available Unity editor. It addresses changes in the prefab workflow.
# Components for Runtime NavMesh Building
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册