mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 19:55:09 +00:00
25 lines
707 B
C#
25 lines
707 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using UnityEngine.EventSystems;
|
||
|
|
||
|
namespace RhythmHeavenMania.Editor
|
||
|
{
|
||
|
public class DisableSelectOnHover : MonoBehaviour
|
||
|
{
|
||
|
public EventParameterManager eventParameterManager;
|
||
|
|
||
|
// this is fucking retarded
|
||
|
private void LateUpdate()
|
||
|
{
|
||
|
eventParameterManager.canDisable = true;
|
||
|
for (int i = 0; i < transform.childCount; i++)
|
||
|
{
|
||
|
if (Editor.MouseInRectTransform(transform.GetChild(i).GetComponent<RectTransform>()))
|
||
|
{
|
||
|
eventParameterManager.canDisable = false;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|