mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
AssetRefrenceEditor
AssetRefrenceEditor
This commit is contained in:
23
Assets/TEngine/Editor/Resource/AssetReferenceEditor.cs
Normal file
23
Assets/TEngine/Editor/Resource/AssetReferenceEditor.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace TEngine.Editor.Resource
|
||||
{
|
||||
[CustomEditor(typeof(AssetReference), true)]
|
||||
public class AssetReferenceEditor : UnityEditor.Editor
|
||||
{
|
||||
private AssetReference _target;
|
||||
private void OnEnable()
|
||||
{
|
||||
_target = (AssetReference)target;
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
EditorGUILayout.BeginHorizontal();
|
||||
|
||||
EditorGUILayout.EndHorizontal();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bd6cd0c1877e4e758d03e4f6fdfa96ad
|
||||
timeCreated: 1683733968
|
Reference in New Issue
Block a user