protected override float GetControlWidth() { var vector = (Vector2Int)accessor.value; return(LudiqGUI.GetTextFieldAdaptiveWidth(vector.x) + LudiqStyles.compactHorizontalSpacing + LudiqGUI.GetTextFieldAdaptiveWidth(vector.y) + LudiqStyles.compactHorizontalSpacing); }
public override float GetAdaptiveWidth() { var vector = (Vector2)metadata.value; return(LudiqGUI.GetTextFieldAdaptiveWidth(vector.x) + LudiqStyles.compactHorizontalSpacing + LudiqGUI.GetTextFieldAdaptiveWidth(vector.y) + LudiqStyles.compactHorizontalSpacing); }
public override float GetAdaptiveWidth() { if (metadata.HasAttribute <InspectorRangeAttribute>()) { return(100); } else { return(LudiqGUI.GetTextFieldAdaptiveWidth(metadata.value)); } }
protected override float GetControlWidth() { if (rangeAttribute != null) { return(100); } else { return(LudiqGUI.GetTextFieldAdaptiveWidth(accessor.value)); } }
public override float GetAdaptiveWidth() { return(LudiqGUI.GetTextFieldAdaptiveWidth(metadata.value)); }