initial upload
This commit is contained in:
7
Assets/Convai/Scripts/Editor/UI/ConvaiImagesDirectory.cs
Normal file
7
Assets/Convai/Scripts/Editor/UI/ConvaiImagesDirectory.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace Convai.Scripts.Editor.UI
|
||||
{
|
||||
public struct ConvaiImagesDirectory
|
||||
{
|
||||
public const string CONVAI_LOGO_PATH = "Assets/Convai/Art/UI/Logos/Convai Logo.png";
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b0e07e10d99ea164ca7da91a9aaa1a4b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
17
Assets/Convai/Scripts/Editor/UI/ReadOnlyDrawer.cs
Normal file
17
Assets/Convai/Scripts/Editor/UI/ReadOnlyDrawer.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using Convai.Scripts.Runtime.Attributes;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Convai.Scripts.Editor.UI
|
||||
{
|
||||
[CustomPropertyDrawer(typeof(ReadOnlyAttribute))]
|
||||
public class ReadOnlyDrawer : PropertyDrawer
|
||||
{
|
||||
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
||||
{
|
||||
GUI.enabled = false; // Disable the property field
|
||||
EditorGUI.PropertyField(position, property, label, true);
|
||||
GUI.enabled = true; // Re-enable the property field
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Assets/Convai/Scripts/Editor/UI/ReadOnlyDrawer.cs.meta
Normal file
3
Assets/Convai/Scripts/Editor/UI/ReadOnlyDrawer.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2b829967cd7e4a4880a40bb6653e26d9
|
||||
timeCreated: 1701082874
|
||||
Reference in New Issue
Block a user