EnsureEventSystem Class

Ensures the scene has an EventSystem, creating one with the appropriate input module if missing.

Definition

Namespace: Alteruna.Multiplayer.Unity
Assembly: Alteruna.Multiplayer.UnityFiles (in Alteruna.Multiplayer.UnityFiles.dll) Version: 1.0.0+c5328b35489e83c42e288435f5acf6115fd519e0
C#
public class EnsureEventSystem : MonoBehaviour
Inheritance
Object    Object    Component    Behaviour    MonoBehaviour    EnsureEventSystem

Remarks

As an alternative to put Event System in prefabs, this component will create an EventSystem in the scene if one is not yet present.

Constructors

Methods

Ensure Ensures that there is an EventSystem in the scene.

See Also