add new pack: Editor Attributes, complete GoTo cmd
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
using EditorAttributes;
|
||||
|
||||
namespace EditorAttributesSamples
|
||||
{
|
||||
[HelpURL("https://editorattributesdocs.readthedocs.io/en/latest/Attributes/DropdownAttributes/animatorparamdropdown.html")]
|
||||
public class AnimatorParamDropdownSample : MonoBehaviour
|
||||
{
|
||||
[Header("AnimatorParamDropdown Attribute:")]
|
||||
[SerializeField] private Animator animator;
|
||||
[SerializeField, AnimatorParamDropdown(nameof(animator))] private string stringField;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9226f54f3eb045c4e9bb99a3feb269be
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 269285
|
||||
packageName: EditorAttributes
|
||||
packageVersion: 2.9.2
|
||||
assetPath: Assets/EditorAttributes/Samples/Scripts/DropdownAttributeSamples/AnimatorParamDropdownSample.cs
|
||||
uploadId: 806636
|
||||
@@ -0,0 +1,36 @@
|
||||
using UnityEngine;
|
||||
using EditorAttributes;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace EditorAttributesSamples
|
||||
{
|
||||
[HelpURL("https://editorattributesdocs.readthedocs.io/en/latest/Attributes/DropdownAttributes/dropdown.html")]
|
||||
public class DropdownSample : MonoBehaviour
|
||||
{
|
||||
[Header("Dropdown Attribute:")]
|
||||
[Dropdown(nameof(intValues))]
|
||||
[SerializeField] private int intDropdown;
|
||||
|
||||
[Dropdown(nameof(stringValues))]
|
||||
[SerializeField] private string stringDropdown;
|
||||
|
||||
[Dropdown(nameof(floatValues))]
|
||||
[SerializeField] private float floatDropdown;
|
||||
|
||||
[Dropdown(nameof(vectorValues), new string[] { "Directions/Forward", "Directions/Up", "Directions/Down", "One", "Zero" })]
|
||||
[SerializeField] private Vector3 vectorDropdown;
|
||||
|
||||
private int[] intValues = new int[] { 0, 1, 2 };
|
||||
|
||||
private string[] stringValues = new string[] { "Value01", "Value02", "Value03" };
|
||||
|
||||
private Dictionary<string, float> floatValues = new()
|
||||
{
|
||||
{ "Value: 0.5", 0.5f },
|
||||
{ "Value: 1.8", 1.8f },
|
||||
{ "Value: 69.420", 69.420f }
|
||||
};
|
||||
|
||||
private List<Vector3> vectorValues = new() { Vector3.forward, Vector3.up, Vector3.right, Vector3.one, Vector3.zero };
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: afa3127c0cd905f4792de9e01af5e6f7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 269285
|
||||
packageName: EditorAttributes
|
||||
packageVersion: 2.9.2
|
||||
assetPath: Assets/EditorAttributes/Samples/Scripts/DropdownAttributeSamples/DropdownSample.cs
|
||||
uploadId: 806636
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
using EditorAttributes;
|
||||
|
||||
namespace EditorAttributesSamples
|
||||
{
|
||||
[HelpURL("https://editorattributesdocs.readthedocs.io/en/latest/Attributes/DropdownAttributes/propertydropdown.html")]
|
||||
public class PropertyDropdownSample : MonoBehaviour
|
||||
{
|
||||
[Header("PropertyDropdown Attribute:")]
|
||||
[SerializeField, PropertyDropdown] private BoxCollider boxCollider;
|
||||
[SerializeField, PropertyDropdown] private ExampleScriptableObject scriptableObject;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6f26f3e32aa45a1478dc37c8a688fd3e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 269285
|
||||
packageName: EditorAttributes
|
||||
packageVersion: 2.9.2
|
||||
assetPath: Assets/EditorAttributes/Samples/Scripts/DropdownAttributeSamples/PropertyDropdownSample.cs
|
||||
uploadId: 806636
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
using EditorAttributes;
|
||||
|
||||
namespace EditorAttributesSamples
|
||||
{
|
||||
[HelpURL("https://editorattributesdocs.readthedocs.io/en/latest/Attributes/DropdownAttributes/scenedropdown.html")]
|
||||
public class SceneDropdownSample : MonoBehaviour
|
||||
{
|
||||
[Header("SceneDropdown Attribute:")]
|
||||
[SerializeField, SceneDropdown] private int intField;
|
||||
[SerializeField, SceneDropdown] private string stringField;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a15edd49ceea0da43b839a2d2641a913
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 269285
|
||||
packageName: EditorAttributes
|
||||
packageVersion: 2.9.2
|
||||
assetPath: Assets/EditorAttributes/Samples/Scripts/DropdownAttributeSamples/SceneDropdownSample.cs
|
||||
uploadId: 806636
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
using UnityEngine;
|
||||
using EditorAttributes;
|
||||
|
||||
namespace EditorAttributesSamples
|
||||
{
|
||||
[HelpURL("https://editorattributesdocs.readthedocs.io/en/latest/Attributes/DropdownAttributes/sortinglayerdropdown.html")]
|
||||
public class SortingLayerDropdownSample : MonoBehaviour
|
||||
{
|
||||
[Header("SortingLayerDropdown Attribute:")]
|
||||
[SerializeField, SortingLayerDropdown] private int sortingLayer;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1fe545003d59ee149be31354cccd137d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 269285
|
||||
packageName: EditorAttributes
|
||||
packageVersion: 2.9.2
|
||||
assetPath: Assets/EditorAttributes/Samples/Scripts/DropdownAttributeSamples/SortingLayerDropdownSample.cs
|
||||
uploadId: 806636
|
||||
@@ -0,0 +1,12 @@
|
||||
using UnityEngine;
|
||||
using EditorAttributes;
|
||||
|
||||
namespace EditorAttributesSamples
|
||||
{
|
||||
[HelpURL("https://editorattributesdocs.readthedocs.io/en/latest/Attributes/DropdownAttributes/tagdropdown.html")]
|
||||
public class TagDropdownSample : MonoBehaviour
|
||||
{
|
||||
[Header("TagDropdown Attribute:")]
|
||||
[SerializeField, TagDropdown] private string field;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 69dcbf49052b37240b799150906f53ea
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 269285
|
||||
packageName: EditorAttributes
|
||||
packageVersion: 2.9.2
|
||||
assetPath: Assets/EditorAttributes/Samples/Scripts/DropdownAttributeSamples/TagDropdownSample.cs
|
||||
uploadId: 806636
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
using EditorAttributes;
|
||||
|
||||
namespace EditorAttributesSamples
|
||||
{
|
||||
[HelpURL("https://editorattributesdocs.readthedocs.io/en/latest/Attributes/DropdownAttributes/typedropdown.html")]
|
||||
public class TypeDropdownSample : MonoBehaviour
|
||||
{
|
||||
[Header("TypeDropdown Attribute:")]
|
||||
[SerializeField, TypeDropdown] private string allVisibleTypes;
|
||||
[SerializeField, TypeDropdown("UnityEngine.CoreModule")] private string filteredTypes;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3f4eac2d6526e7c459a776e0b96d73cd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 269285
|
||||
packageName: EditorAttributes
|
||||
packageVersion: 2.9.2
|
||||
assetPath: Assets/EditorAttributes/Samples/Scripts/DropdownAttributeSamples/TypeDropdownSample.cs
|
||||
uploadId: 806636
|
||||
Reference in New Issue
Block a user