【a】XNode
This commit is contained in:
5
Assets/10.XNode/Scripts/Attributes/NodeEnum.cs
Normal file
5
Assets/10.XNode/Scripts/Attributes/NodeEnum.cs
Normal file
@@ -0,0 +1,5 @@
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary> Draw enums correctly within nodes. Without it, enums show up at the wrong positions. </summary>
|
||||
/// <remarks> Enums with this attribute are not detected by EditorGui.ChangeCheck due to waiting before executing </remarks>
|
||||
public class NodeEnumAttribute : PropertyAttribute { }
|
||||
13
Assets/10.XNode/Scripts/Attributes/NodeEnum.cs.meta
Normal file
13
Assets/10.XNode/Scripts/Attributes/NodeEnum.cs.meta
Normal file
@@ -0,0 +1,13 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 10a8338f6c985854697b35459181af0a
|
||||
timeCreated: 1541633942
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
/// <summary> Overrides the ValueType of the Port, to have a ValueType different from the type of its serializable field </summary>
|
||||
/// <remarks> Especially useful in Dynamic Port Lists to create Value-Port Pairs with different type. </remarks>
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public class PortTypeOverrideAttribute : Attribute {
|
||||
public Type type;
|
||||
/// <summary> Overrides the ValueType of the Port </summary>
|
||||
/// <param name="type">ValueType of the Port</param>
|
||||
public PortTypeOverrideAttribute(Type type) {
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1410c1437e863ab4fac7a7428aaca35b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user