Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

MonoScript.FromMonoBehaviour

Switch to Manual
public static function FromMonoBehaviour(behaviour: MonoBehaviour): MonoScript;

Parameters

behaviourThe MonoBehaviour whose MonoScript should be returned.

Description

Returns the MonoScript object containing specified MonoBehaviour.