Skip to content

Auto-create EventSystem if EventSystem.current is null #1895

@RobertPoienar

Description

@RobertPoienar

To prevent UI interactions (clicks, etc.) from failing, we need to ensure an EventSystem is always present in the scene.

If EventSystem.current is null on scene load, a new GameObject should be automatically created and populated with:

  • EventSystem component
  • StandaloneInputModule (or a relevant input module) component

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions