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 System; | |
using UnityEditor; | |
using UnityEngine; | |
// Use Example 1: [VTRangeStep(0f, 10f, 0.25f)] | |
// Use Example 2: [VTRangeStep(100, 1000, 25)] | |
namespace Victor.Tools | |
{ | |
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)] | |
public sealed class VTRangeStep : PropertyAttribute |
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 System; | |
using UnityEditor; | |
using UnityEngine; | |
namespace Victor.Tools | |
{ | |
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)] | |
public sealed class VTMinMaxSlider : PropertyAttribute | |
{ | |
internal Vector2 m_MinmaxLimit; |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
public class VTCameraRotator : MonoBehaviour | |
{ | |
public enum PanMethods { Mouse, Keyboard }; | |
// The target of the camera rotate sphere |