文档

Unity Engine

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.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static string GetObjectPath(Object obj)

Parameters

Object to obtain a path from.

Returns

Type

Description

stringReturns the path of an object.