Camera flashes (bug associated with fullscreen)

This commit is contained in:
Braedon
2022-02-07 20:07:03 -05:00
parent 57b14c3f3e
commit 49ad157893
31 changed files with 2646 additions and 97 deletions

View File

@ -16,6 +16,7 @@ namespace RhythmHeavenMania.Editor
[SerializeField] private GameObject IntegerP;
[SerializeField] private GameObject FloatP;
[SerializeField] private GameObject DropdownP;
[SerializeField] private GameObject ColorP;
public Beatmap.Entity entity;
@ -23,6 +24,8 @@ namespace RhythmHeavenMania.Editor
private int childCountAtStart;
public bool canDisable = true;
public static EventParameterManager instance { get; set; }
private void Awake()
@ -39,7 +42,7 @@ namespace RhythmHeavenMania.Editor
{
if (Input.GetMouseButtonDown(0))
{
if (!Timeline.instance.MouseInRectTransform(Editor.instance.eventSelectorBG) && active)
if (canDisable && active)
{
Disable();
}
@ -107,6 +110,10 @@ namespace RhythmHeavenMania.Editor
{
prefab = DropdownP;
}
else if (objType == typeof(Color))
{
prefab = ColorP;
}
GameObject input = Instantiate(prefab);
input.transform.SetParent(this.gameObject.transform);