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 |
int |
Tries to get the execution time of the script asset containing `type`.
static
|
GetScript |
MonoScript |
Tries to get the script asset containing `type`.
static
|
GetSourcePath |
string |
Tries to get the path to the script asset containing `type`. If this fails, it instead gets the path to its
assembly.
static
|