Make work with astra
This commit is contained in:
parent
21859bcfb3
commit
c8ee5045e2
1 changed files with 6338 additions and 4613 deletions
21
UnityProject/Assets/ThirdParty/Standard Assets/Utility/EventSystemChecker.cs
vendored
Normal file
21
UnityProject/Assets/ThirdParty/Standard Assets/Utility/EventSystemChecker.cs
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
public class EventSystemChecker : MonoBehaviour
|
||||
{
|
||||
//public GameObject eventSystem;
|
||||
|
||||
// Use this for initialization
|
||||
void Awake ()
|
||||
{
|
||||
if(!FindObjectOfType<EventSystem>())
|
||||
{
|
||||
//Instantiate(eventSystem);
|
||||
GameObject obj = new GameObject("EventSystem");
|
||||
obj.AddComponent<EventSystem>();
|
||||
obj.AddComponent<StandaloneInputModule>().forceModuleActive = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue