UniVRM/Assets/VRM10_Samples/VRM10Viewer/UIToolkit/TextureElement.cs
2025-03-25 01:23:49 +09:00

28 lines
723 B
C#

using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;
class TextureElement : VisualElement
{
public TextureElement()
{
}
public new class UxmlFactory : UxmlFactory<TextureElement, UxmlTraits> { }
public new class UxmlTraits : VisualElement.UxmlTraits
{
UxmlStringAttributeDescription m_texture = new UxmlStringAttributeDescription { name = "texture" };
public override IEnumerable<UxmlChildElementDescription> uxmlChildElementsDescription
{
get { yield break; }
}
public override void Init(VisualElement ve, IUxmlAttributes bag, CreationContext cc)
{
base.Init(ve, bag, cc);
}
}
}