Created
August 18, 2018 00:29
-
-
Save kalineh/e9fdb951687ed6038f5ae34d3720f2d2 to your computer and use it in GitHub Desktop.
TweakValues.cs
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
using Sirenix; | |
using Sirenix.OdinInspector; | |
using Sirenix.OdinInspector.Editor; | |
#endif | |
public static class TweakValues | |
{ | |
public static float A { get { return EditorWindow.GetWindow<TweakValuesWindow>().A; } } | |
public static float B { get { return EditorWindow.GetWindow<TweakValuesWindow>().B; } } | |
public static float C { get { return EditorWindow.GetWindow<TweakValuesWindow>().C; } } | |
public static float D { get { return EditorWindow.GetWindow<TweakValuesWindow>().D; } } | |
public static float E { get { return EditorWindow.GetWindow<TweakValuesWindow>().E; } } | |
public static Vector3 VA { get { return EditorWindow.GetWindow<TweakValuesWindow>().VA; } } | |
public static Vector3 VB { get { return EditorWindow.GetWindow<TweakValuesWindow>().VB; } } | |
public static Vector3 VC { get { return EditorWindow.GetWindow<TweakValuesWindow>().VC; } } | |
public static Vector3 VD { get { return EditorWindow.GetWindow<TweakValuesWindow>().VD; } } | |
public static Vector3 VE { get { return EditorWindow.GetWindow<TweakValuesWindow>().VE; } } | |
public static Color CA { get { return EditorWindow.GetWindow<TweakValuesWindow>().CA; } } | |
public static Color CB { get { return EditorWindow.GetWindow<TweakValuesWindow>().CB; } } | |
public static Color CC { get { return EditorWindow.GetWindow<TweakValuesWindow>().CC; } } | |
public static DG.Tweening.Ease EA { get { return EditorWindow.GetWindow<TweakValuesWindow>().EA; } } | |
public static DG.Tweening.Ease EB { get { return EditorWindow.GetWindow<TweakValuesWindow>().EB; } } | |
public static DG.Tweening.Ease EC { get { return EditorWindow.GetWindow<TweakValuesWindow>().EC; } } | |
} | |
#if UNITY_EDITOR | |
public class TweakValuesWindow | |
: OdinEditorWindow | |
{ | |
[MenuItem("Custom/Tweak Values")] | |
private static void OpenWindow() | |
{ | |
GetWindow<TweakValuesWindow>().Show(); | |
} | |
public float A; | |
public float B; | |
public float C; | |
public float D; | |
public float E; | |
public Vector3 VA; | |
public Vector3 VB; | |
public Vector3 VC; | |
public Vector3 VD; | |
public Vector3 VE; | |
public Color CA; | |
public Color CB; | |
public Color CC; | |
public DG.Tweening.Ease EA; | |
public DG.Tweening.Ease EB; | |
public DG.Tweening.Ease EC; | |
} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment