This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is an Editor class for some Component class | |
*/ | |
[CustomEditor(typeof(SomeComponent))] | |
public class SomeComponentEditor : Editor { | |
// OnSceneGUI() is often used to paint or interact with objects in the Scene | |
// at edit time. Here we show how to prevent clicking on a game scene from | |
// resulting in a change of focused/selected element in the Scene hierarchy. | |
private void OnSceneGUI() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Author: AmbientLion@github | |
/// Purpose: This is an Odin-based (https://odininspector.com) editor tool window that simplifies | |
/// the work for copying AnimatorController parameters from one controller to another. | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Sirenix.OdinInspector; | |
using Sirenix.OdinInspector.Editor; | |
using UnityEditor; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.InputSystem; | |
public class InputManager : MonoBehaviour | |
{ | |
// the class generates from the InputActions asset (your name can vary) | |
private TouchInputs touchInputs; | |
// tracks which object is currently actively receiving touch input | |
private InputReceiver currentReceiver; | |
// the last touch position that was recorded |