using System; using UnityEditor.UIElements; using UnityEngine.Perception.Randomization.Samplers; using UnityEngine.UIElements; namespace UnityEditor.Perception.Randomization { class SamplerInterfaceElement : VisualElement { VisualElement m_PropertiesContainer; SerializedProperty m_Property; SerializedProperty m_RangeProperty; ToolbarMenu m_SamplerTypeDropdown; public SamplerInterfaceElement(SerializedProperty property) { m_Property = property; var template = AssetDatabase.LoadAssetAtPath( $"{StaticData.uxmlDir}/Sampler/SamplerInterfaceElement.uxml"); template.CloneTree(this); if (sampler == null) CreateSampler(typeof(UniformSampler)); var samplerName = this.Q