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; | |
public class CommonAccessModifiers : MonoBehaviour | |
{ | |
// VISIBLE/EDITABLE from the inspector, this script | |
// and other scripts | |
public int MyCounter1; | |
// VISIBLE/EDITABLE in this script, and VISIBLE | |
// in other scripts |
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; | |
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
// LICENSE | |
// | |
// This software is dual-licensed to the public domain and under the following | |
// license: you are granted a perpetual, irrevocable license to copy, modify, | |
// publish, and distribute this file as you see fit. | |
using System; | |
using System.Collections.Generic; | |
public static class FuzzyMatcher |