更改了文件结构
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "BITKit.Entities.Editor",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
|
||||
"GUID:709caf8d7fb6ef24bbba0ab9962a3ad0",
|
||||
"GUID:d525ad6bd40672747bde77962f1c401e",
|
||||
"GUID:49b49c76ee64f6b41bf28ef951cb0e50"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [
|
||||
"UNITY_EDITOR"
|
||||
],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9aabd3c3394939c4c9a53fb1e9495d32
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace BITKit.Entities.Editor
|
||||
{
|
||||
public class UnityEntitiesServiceEditor : EditorWindow
|
||||
{
|
||||
[MenuItem("Tools/Entities/UnityEntitiesService")]
|
||||
public static void Open()
|
||||
{
|
||||
var window = GetWindow<UnityEntitiesServiceEditor>();
|
||||
window.Show();
|
||||
}
|
||||
private Label _timeLabel;
|
||||
private VisualElement _container;
|
||||
private void OnEnable()
|
||||
{
|
||||
_timeLabel = rootVisualElement.Create<Label>();
|
||||
_container = rootVisualElement.Create<VisualElement>();
|
||||
rootVisualElement.styleSheets.Add(BITEditorUtils.InspectorStyleSheet);
|
||||
rootVisualElement.styleSheets.Add(BITEditorUtils.Style);
|
||||
rootVisualElement.AddToClassList("pa-8");
|
||||
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
_timeLabel.text = DateTime.Now.ToString(CultureInfo.InvariantCulture);
|
||||
_container.Clear();
|
||||
foreach (var x in UnityEntitiesService.Entities)
|
||||
{
|
||||
_container.Create<Label>().text = $"{x.Id}\t{x}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2686410fb1e9a4a4f8927c413192ae9a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user