您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
694 B

using System;
using UnityEngine.UIElements;
namespace UnityEditor.Perception.Randomization
{
class SamplerElement : VisualElement
{
public SamplerElement(SerializedProperty property)
{
var template = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(
$"{StaticData.uxmlDir}/Sampler/SamplerElement.uxml");
template.CloneTree(this);
var displayName = this.Q<Label>("display-name");
displayName.text = property.displayName;
var fieldsContainer = this.Q<VisualElement>("fields-container");
UIElementsEditorUtilities.CreatePropertyFields(property, fieldsContainer);
}
}
}