ドキュメント

Unity Engine

Unity Engine

MonoScript

Representation of Script assets.
読み終わるまでの所要時間 4 分最終更新 1ヶ月前

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.