Version: 2017.3

MonoScript.FromMonoBehaviour

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

Parameters

behaviour The MonoBehaviour whose MonoScript should be returned.

Description

Returns the MonoScript object containing specified MonoBehaviour.