SearchUtils.GetObjectPath

Declaration

public static string GetObjectPath(Object obj);

Parameters

obj Object to obtain a path from.

Returns

string Returns the path of an object.

Description

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.


Did you find this page useful? Please give it a rating: