28 lines
593 B
C#
28 lines
593 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using BITFALL.UX;
|
|
using BITKit;
|
|
using BITKit.IData;
|
|
using BITKit.UX;
|
|
using UnityEngine;
|
|
using UnityEngine.UIElements;
|
|
|
|
namespace MyNamespace
|
|
{
|
|
public class UXDataInspector : UXBase
|
|
{
|
|
[UXBindPath("inspector-container")]
|
|
private VisualElement inspectorContainer;
|
|
[UXBindPath("inspector-label")]
|
|
private Label inspectorLabel;
|
|
public void Inspect(object data)
|
|
{
|
|
Entry();
|
|
inspectorLabel.text = data.GetType().Name;
|
|
inspectorContainer.Clear();
|
|
inspectorContainer.Add(UXDataBindingService.Create(data));
|
|
}
|
|
}
|
|
|
|
}
|