GetObjectPath(Object)
Get the path of a Unity Object. If it is a GameObject or a Component it is the. Else it is the asset name.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Search
- Assembly: UnityEditor
public static string GetObjectPath(Object obj)
Parameters
Object to obtain a path from.
Returns
Type | Description |
|---|---|
| string | Returns the path of an object. |