using System; using UnityEditor; using UnityEditor.UIElements; using UnityEngine.UIElements; namespace UnityEngine.Perception.Randomization.Editor { class CategoricalOptionElement : VisualElement { int m_Index; SerializedProperty m_CategoryProperty; SerializedProperty m_ProbabilitiesProperty; internal CategoricalOptionElement( SerializedProperty categoryProperty, SerializedProperty probabilitiesProperty) { m_CategoryProperty = categoryProperty; m_ProbabilitiesProperty = probabilitiesProperty; var template = AssetDatabase.LoadAssetAtPath( $"{StaticData.uxmlDir}/CategoricalOptionElement.uxml"); template.CloneTree(this); } // Called from categorical parameter public void BindProperties(int i) { m_Index = i; var indexLabel = this.Q