MonoScript.FromMonoBehaviour
static function FromMonoBehaviour(behaviour: MonoBehaviour): MonoScript;
static MonoScript FromMonoBehaviour(MonoBehaviour behaviour);
static def FromMonoBehaviour(behaviour as MonoBehaviour) as MonoScript
Parameters

behaviour The MonoBehaviour whose MonoScript should be returned.
Description

Returns the MonoScript object containing specified MonoBehaviour.