Table of Contents

GetAssetPathByType Method

GetAssetPathByType(Type)

public static string GetAssetPathByType(Type t)

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

Parameters

t Type

Returns

string

null if not found