Version: 2018.1

MonoScript.FromMonoBehaviour

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

Parameters

behaviourThe MonoBehaviour whose MonoScript should be returned.

Description

Returns the MonoScript object containing specified MonoBehaviour.