Eversoul:

-compatibility improvements
Core:
-new settings class
This commit is contained in:
2024-04-25 02:16:49 +02:00
parent fc64500158
commit c922584d38
39 changed files with 4302 additions and 219 deletions

View File

@@ -6,9 +6,6 @@ using System.Collections;
using CommandUndoRedo;
using System.Linq;
using UnityEngine.EventSystems;
using UnityEditor.PackageManager;
using static UnityEngine.Rendering.VirtualTexturing.Debugging;
using static UnityEngine.GraphicsBuffer;
namespace RuntimeGizmos
{
@@ -411,7 +408,9 @@ namespace RuntimeGizmos
{
if (mainTargetRoot != null)
{
if (nearAxis != Axis.None && Input.GetMouseButtonDown(0) && !EventSystem.current.IsPointerOverGameObject())
bool isModifyingSelection = Input.GetKey(AddSelection) || Input.GetKey(RemoveSelection);
if (nearAxis != Axis.None && !isModifyingSelection && Input.GetMouseButtonDown(0) && !EventSystem.current.IsPointerOverGameObject())
{
StartCoroutine(TransformSelected(translatingType));
}
@@ -701,16 +700,16 @@ namespace RuntimeGizmos
void GetTarget()
{
if (nearAxis == Axis.None && !EventSystem.current.IsPointerOverGameObject())
bool isAdding = Input.GetKey(AddSelection);
bool isRemoving = Input.GetKey(RemoveSelection);
if ((nearAxis == Axis.None || isAdding || isRemoving) && !EventSystem.current.IsPointerOverGameObject())
{
bool leftClick = Input.GetMouseButtonDown(0);
bool rightClick = Input.GetMouseButtonDown(1);
if (!leftClick && !rightClick) return;
bool isAdding = Input.GetKey(AddSelection);
bool isRemoving = Input.GetKey(RemoveSelection);
RaycastHit[] hits = Physics.RaycastAll(myCamera.ScreenPointToRay(Input.mousePosition), Mathf.Infinity, selectionMask);
if (hits.Length > 0)
{