Table of Contents

GetAssetPathByName Method

GetAssetPathByName(string) Deprecated

[Obsolete("use GetAssetPathByType() instead.")]
public static string GetAssetPathByName(string clsName)

Returns "Assets/" or "Packages/" starting path to the script. (relative path from Unity project directory)

Parameters

clsName string

Returns

string

null if not found