UnityScripts Class

Summary

[Editor-Only] A variety of utility methods relating to script assets in Unity.
Assembly
Weaver.dll
Namespace
Weaver.Editor
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["UnityScripts"] class Type type-node

Syntax

public static class UnityScripts

Methods

Name Value Summary
GetExecutionTime(Type) int
Tries to get the execution time of the script asset containing `type`.
static
GetScript(Type) MonoScript
Tries to get the script asset containing `type`.
static
GetSourcePath(Type, bool) string
Tries to get the path to the script asset containing `type`. If this fails, it instead gets the path to its assembly.
static