MonoImporter
Represents a C# script in the project.
Read time 5 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor
- Inherits from: AssetImporter
public class MonoImporter : AssetImporter
Methods
Method | Description |
|---|---|
| GetDefaultReference | Gets the default value for a reference field in the imported MonoScript. |
| GetIcon | Gets the icon to associate with the imported MonoScript. |
| GetScript | Gets the imported MonoScript. If the imported C# file contains multiple classes, the first is returned. |
| SetDefaultReferences | Sets default references for this MonoScript. |
| SetIcon | Sets a custom icon to associate with the imported MonoScript. |
Static Methods
Method | Description |
|---|---|
| GetAllRuntimeMonoScripts | Gets an array of scripts that will be available at runtime. |
| GetExecutionOrder | Gets the execution order for a MonoScript. |
| SetExecutionOrder | Sets the execution order for a MonoScript. This method forces Unity to reimport the MonoImporter for the target script. |
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. |