Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

public static string GetObjectPath(Object obj)

Parameters

Object to obtain a path from.

Returns

Type

Description

stringReturns the path of an object.