add new pack: Editor Attributes, complete GoTo cmd
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using EditorAttributes;
|
||||
|
||||
namespace EditorAttributesSamples
|
||||
{
|
||||
[HelpURL("https://editorattributesdocs.readthedocs.io/en/latest/Attributes/GroupingAttributes/datatable.html")]
|
||||
public class DataTableSample : MonoBehaviour
|
||||
{
|
||||
[Serializable]
|
||||
private struct Data
|
||||
{
|
||||
public int intField;
|
||||
public float floatField;
|
||||
public string stringField;
|
||||
public bool boolField;
|
||||
}
|
||||
|
||||
[Header("DataTable Attribute:")]
|
||||
[SerializeField, DataTable(true)] private Data structField;
|
||||
[SerializeField, DataTable] private Data[] structArray;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8f67af8a1c485704385da5055134d8d9
|
||||
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/GroupingAttributeSamples/DataTableSample.cs
|
||||
uploadId: 806636
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
using UnityEngine;
|
||||
using EditorAttributes;
|
||||
|
||||
namespace EditorAttributesSamples
|
||||
{
|
||||
[HelpURL("https://editorattributesdocs.readthedocs.io/en/latest/Attributes/GroupingAttributes/foldoutgroup.html")]
|
||||
public class FoldoutGroupSample : MonoBehaviour
|
||||
{
|
||||
[Header("FoldoutGroup attribute:")]
|
||||
[FoldoutGroup("FoldoutGroup", nameof(intField01), nameof(stringField01), nameof(boolField01))]
|
||||
[SerializeField] private Void groupHolder;
|
||||
|
||||
[FoldoutGroup("BoxedFoldoutGroup", drawInBox: true, nameof(intField02), nameof(stringField02), nameof(boolField02))]
|
||||
[SerializeField] private Void boxedGroupHolder;
|
||||
|
||||
[SerializeField, HideProperty] private int intField01;
|
||||
[SerializeField, HideProperty] private string stringField01;
|
||||
[SerializeField, HideProperty] private bool boolField01;
|
||||
|
||||
[SerializeField, HideProperty] private int intField02;
|
||||
[SerializeField, HideProperty] private string stringField02;
|
||||
[SerializeField, HideProperty] private bool boolField02;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: edd00b3f5f18c5b48a1fa65da8c7f7c2
|
||||
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/GroupingAttributeSamples/FoldoutGroupSample.cs
|
||||
uploadId: 806636
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
using UnityEngine;
|
||||
using EditorAttributes;
|
||||
|
||||
namespace EditorAttributesSamples
|
||||
{
|
||||
[HelpURL("https://editorattributesdocs.readthedocs.io/en/latest/Attributes/GroupingAttributes/horizontalgroup.html")]
|
||||
public class HorizontalGroupSample : MonoBehaviour
|
||||
{
|
||||
[Header("HorizontalGroup Attribute:")]
|
||||
[HorizontalGroup(false, nameof(intField01), nameof(stringField01), nameof(boolField01))]
|
||||
[SerializeField] private Void groupHolder;
|
||||
[Space]
|
||||
[HorizontalGroup(150f, 30f, true, nameof(intField02), nameof(stringField02), nameof(boolField02))]
|
||||
[SerializeField] private Void boxedGroupHolder;
|
||||
|
||||
[SerializeField, HideProperty] private int intField01;
|
||||
[SerializeField, HideProperty] private string stringField01;
|
||||
[SerializeField, HideProperty] private bool boolField01;
|
||||
|
||||
[SerializeField, HideProperty] private int intField02;
|
||||
[SerializeField, HideProperty] private string stringField02;
|
||||
[SerializeField, HideProperty] private bool boolField02;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: be310c9b15918904aad22cf6726b1e76
|
||||
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/GroupingAttributeSamples/HorizontalGroupSample.cs
|
||||
uploadId: 806636
|
||||
@@ -0,0 +1,32 @@
|
||||
using UnityEngine;
|
||||
using EditorAttributes;
|
||||
|
||||
namespace EditorAttributesSamples
|
||||
{
|
||||
[HelpURL("https://editorattributesdocs.readthedocs.io/en/latest/Attributes/GroupingAttributes/tabgroup.html")]
|
||||
public class TabGroupSample : MonoBehaviour
|
||||
{
|
||||
[Header("TabGroup Attribute:")]
|
||||
[TabGroup(nameof(intGroup), nameof(stringGroup), nameof(boolGroup))]
|
||||
[SerializeField] private Void tabGroup;
|
||||
|
||||
[VerticalGroup(nameof(intField01), nameof(intField02))]
|
||||
[SerializeField, HideProperty] private Void intGroup;
|
||||
|
||||
[VerticalGroup(nameof(stringField01), nameof(stringField02), nameof(stringField03))]
|
||||
[SerializeField, HideProperty] private Void stringGroup;
|
||||
|
||||
[VerticalGroup(true, nameof(boolField01), nameof(boolField02))]
|
||||
[SerializeField, HideProperty] private Void boolGroup;
|
||||
|
||||
[SerializeField, HideProperty] private int intField01;
|
||||
[SerializeField, HideProperty] private int intField02;
|
||||
|
||||
[SerializeField, HideProperty] private string stringField01;
|
||||
[SerializeField, HideProperty] private string stringField02;
|
||||
[SerializeField, HideProperty] private string stringField03;
|
||||
|
||||
[SerializeField, HideProperty] private bool boolField01;
|
||||
[SerializeField, HideProperty] private bool boolField02;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1af886006f3b7fe4d936852c31ef30d5
|
||||
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/GroupingAttributeSamples/TabGroupSample.cs
|
||||
uploadId: 806636
|
||||
@@ -0,0 +1,25 @@
|
||||
using UnityEngine;
|
||||
using EditorAttributes;
|
||||
|
||||
namespace EditorAttributesSamples
|
||||
{
|
||||
[HelpURL("https://editorattributesdocs.readthedocs.io/en/latest/Attributes/GroupingAttributes/togglegroup.html")]
|
||||
public class ToggleGroupSample : MonoBehaviour
|
||||
{
|
||||
[Header("ToggleGroup attribute:")]
|
||||
[ToggleGroup("ToggleGroup", nameof(intField01), nameof(stringField01), nameof(boolField01))]
|
||||
[SerializeField] private Void groupHolder;
|
||||
|
||||
[ToggleGroup("BoxedToggleGroup", drawInBox: true, nameof(intField02), nameof(stringField02), nameof(boolField02))]
|
||||
[SerializeField] private bool boxedGroupHolder;
|
||||
|
||||
[SerializeField, HideProperty] private int intField01;
|
||||
[SerializeField, HideProperty] private string stringField01;
|
||||
[SerializeField, HideProperty] private bool boolField01;
|
||||
|
||||
[MessageBox("The toggle group has been enabled", nameof(boxedGroupHolder))]
|
||||
[SerializeField, HideProperty] private int intField02;
|
||||
[SerializeField, HideProperty] private string stringField02;
|
||||
[SerializeField, HideProperty] private bool boolField02;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e8d16364a8c14c84695eff13dde25ea1
|
||||
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/GroupingAttributeSamples/ToggleGroupSample.cs
|
||||
uploadId: 806636
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
using UnityEngine;
|
||||
using EditorAttributes;
|
||||
|
||||
namespace EditorAttributesSamples
|
||||
{
|
||||
[HelpURL("https://editorattributesdocs.readthedocs.io/en/latest/Attributes/GroupingAttributes/verticalgroup.html")]
|
||||
public class VerticalGroupSample : MonoBehaviour
|
||||
{
|
||||
[Header("VerticalGroup Attribute:")]
|
||||
[VerticalGroup(true, nameof(intField01), nameof(stringField01), nameof(boolField01))]
|
||||
[SerializeField] private Void groupHolder;
|
||||
|
||||
[HorizontalGroup(true, nameof(boxedGroupHolder), nameof(boxedGroupHolder2))]
|
||||
[SerializeField] private Void horizontalGroupHolder;
|
||||
|
||||
[VerticalGroup(true, nameof(intField02), nameof(stringField02), nameof(boolField02))]
|
||||
[SerializeField, HideProperty] private Void boxedGroupHolder;
|
||||
|
||||
[VerticalGroup(true, nameof(intField03), nameof(stringField03), nameof(boolField03))]
|
||||
[SerializeField, HideProperty] private Void boxedGroupHolder2;
|
||||
|
||||
[SerializeField, HideProperty] private int intField01;
|
||||
[SerializeField, HideProperty] private string stringField01;
|
||||
[SerializeField, HideProperty] private bool boolField01;
|
||||
|
||||
[SerializeField, HideProperty] private int intField02;
|
||||
[SerializeField, HideProperty] private string stringField02;
|
||||
[SerializeField, HideProperty] private bool boolField02;
|
||||
|
||||
[SerializeField, HideProperty] private int intField03;
|
||||
[SerializeField, HideProperty] private string stringField03;
|
||||
[SerializeField, HideProperty] private bool boolField03;
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 407b5ce8cd2701b41ac833e5f7b2fe51
|
||||
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/GroupingAttributeSamples/VerticalGroupSample.cs
|
||||
uploadId: 806636
|
||||
Reference in New Issue
Block a user