Version: 2022.3
public static string GetObjectPath (Object obj);

参数

obj Object to obtain a path from.

返回

string Returns the path of an object.

描述

Get the path of a Unity Object. If it is a GameObject or a Component it is the <see cref="SearchUtils.GetTransformPath(Transform)"/>. Else it is the asset name.