UnityScripts.

GetSourcePath(Type, bool) Method

Summary

Tries to get the path to the script asset containing `type`. If this fails, it instead gets the path to its assembly.
Assembly
Weaver.dll
Namespace
Weaver.Editor
Containing Type
UnityScripts

Syntax

public static string GetSourcePath(Type type, out bool isScript)

Parameters

Name Type Description
type Type
isScript bool

Return Value

Type Description
string