加入ui反射界面生成

This commit is contained in:
2026-04-18 18:03:45 +08:00
parent 21a09edad2
commit eb7bdfccc3
19 changed files with 492 additions and 116 deletions
@@ -0,0 +1,7 @@
namespace XericUI.ReflectionUIGenerator
{
public class XuiavrgAttribute
{
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 10e270c86cab4817a0b8ce7877b2ab88
timeCreated: 1776505683
@@ -0,0 +1,30 @@
using Deconstruction.Type.Peculiarity;
using UnityEngine;
namespace XericUI.ReflectionUIGenerator
{
/// <summary>
/// 节点下生成反射属性管理器
/// </summary>
public class XuiavrgManager
{
/// <summary>
/// 装填数据负载
/// </summary>
/// <param name="payload"></param>
public void PerformSchemaDrivenHydration(object payload)
{
var type = payload.GetType();
var attributes = type.GetCustomAttributes(true);
foreach (var attribute in attributes)
{
if (attribute is not XuiavrgAttribute xuiavrgAttribute)
continue;
}
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 8643f83a494345edaba7e524c63dfd24
timeCreated: 1776500141
@@ -0,0 +1,14 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace XericUI.ReflectionUIGenerator
{
/// <summary>
/// ui反射属性定位器,放在池对象的根节点上,设定好接下来的目标即可
/// </summary>
public class XuiavrgPooledLocator : MonoBehaviour
{
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ba7420972b684874dbab8713369d6f1b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
namespace XericUI.ReflectionUIGenerator
{
public static class XuiavrgUtilities
{
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 967542fae9744ef89747df28c1c2196e
timeCreated: 1776501926