Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MonoScript

Representation of Script assets.
Read time 4 minutesLast updated 2 days ago

Definition

public class MonoScript : TextAsset

Remarks

This class represents C# files stored in the project.

Methods

Method

Description

GetClassReturns the System.Type object of the class implemented by this script.

Static Methods

Method

Description

FromMonoBehaviourReturns the MonoScript object containing specified MonoBehaviour.
FromScriptableObjectReturns the MonoScript object containing specified ScriptableObject.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.