MonoScript
Representation of Script assets.
Read time 4 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor
- Inherits from: TextAsset
public class MonoScript : TextAsset
Remarks
This class represents C# files stored in the project.
Methods
Method | Description |
|---|---|
| GetClass | Returns the System.Type object of the class implemented by this script. |
Static Methods
Method | Description |
|---|---|
| FromMonoBehaviour | Returns the MonoScript object containing specified MonoBehaviour. |
| FromScriptableObject | Returns the MonoScript object containing specified ScriptableObject. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |