Unity 编辑器
作者:互联网
1. 获取拖拽物体的路径
Object selectedObject = EditorGUILayout.ObjectField(selectedObject, typeof(Object));
if (selectedObject != null) {
string assetPath = AssetDatabase.GetAssetPath(selectedObject);
}
标签:assetPath,string,Object,Unity,GetAssetPath,编辑器,AssetDatabase,selectedObject 来源: https://www.cnblogs.com/DGJS/p/13751457.html