Import assets from store
This commit is contained in:
1 parent
a05f2e47a2
commit
376e52e323
875 files changed
+128037
No files matched your search
@@ -0,0 +1,51 @@
|
||||
//
|
||||
// Custom Attributes
|
||||
//
|
||||
// Author : Alex Tuduran
|
||||
// Copyright : OmniSAR Technologies
|
||||
//
|
||||
|
||||
using System;
|
||||
using UnityEngine;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
|
||||
namespace OmniSARTechnologies.Helper {
|
||||
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
|
||||
public sealed class DisplayNameAttribute : PropertyAttribute {
|
||||
public readonly string displayName;
|
||||
|
||||
public DisplayNameAttribute(string displayName) {
|
||||
this.displayName = displayName;
|
||||
}
|
||||
}
|
||||
|
||||
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = true)]
|
||||
public sealed class WhatsThisAttribute : PropertyAttribute {
|
||||
public readonly string message;
|
||||
#if UNITY_EDITOR
|
||||
public readonly MessageType messageType;
|
||||
#endif
|
||||
|
||||
#if UNITY_EDITOR
|
||||
public WhatsThisAttribute(string message, MessageType messageType = MessageType.None) {
|
||||
this.message = message;
|
||||
this.messageType = messageType;
|
||||
}
|
||||
#else
|
||||
public WhatsThisAttribute(string message, params object[] unused) {
|
||||
this.message = message;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
|
||||
public sealed class DocsAttribute : PropertyAttribute {
|
||||
public readonly string text;
|
||||
|
||||
public DocsAttribute(string text = default(string)) {
|
||||
this.text = text;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user