MonoScript.FromMonoBehaviour

static function FromMonoBehaviour (behaviour : MonoBehaviour) : MonoScript

Parameters

NameDescription
behaviour The MonoBehaviour whose MonoScript should be returned

Description

Returns the MonoScript object containing specified MonoBehaviour