Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Assets/RuntimeGizmo/TransformGizmo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using UnityEngine;
using UnityEngine.Events;
using System.Collections.Generic;
using System.Collections;
using CommandUndoRedo;
Expand Down Expand Up @@ -126,7 +127,10 @@ public class TransformGizmo : MonoBehaviour
Coroutine forceUpdatePivotCoroutine;

static Material lineMaterial;
static Material outlineMaterial;
public Material outlineMaterial;

public UnityEvent onSelect;
public UnityEvent onDeselect;

void Awake()
{
Expand Down Expand Up @@ -675,6 +679,8 @@ public void AddTarget(Transform target, bool addCommand = true)
AddTargetHighlightedRenderers(target);

SetPivotPoint();

onSelect.Invoke();
}
}

Expand All @@ -690,6 +696,8 @@ public void RemoveTarget(Transform target, bool addCommand = true)
RemoveTargetRoot(target);

SetPivotPoint();

onDeselect.Invoke();
}
}

Expand Down