跳到主要内容
版本:3.0.x

Class ToggleFoldout

折叠开关

Assembly: YooAsset.Editor.dll
View Source
Declaration
public class ToggleFoldout : Toggle, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, INotifyValueChanged<bool>, IMixedValueSupport

Methods

SetValueWithoutNotify(bool)

<p> Sets the value of the BaseBoolField, but does not notify the rest of the hierarchy of the change. </p>

View Source
Declaration
public override void SetValueWithoutNotify(bool newValue)
Parameters
TypeName
System.BooleannewValue

RefreshIcon()

刷新折叠状态对应的图标

View Source
Declaration
public void RefreshIcon()

Implements

  • UnityEngine.UIElements.IEventHandler
  • UnityEngine.UIElements.IResolvedStyle
  • UnityEngine.UIElements.ITransform
  • UnityEngine.UIElements.Experimental.ITransitionAnimations
  • UnityEngine.UIElements.IExperimentalFeatures
  • UnityEngine.UIElements.IVisualElementScheduler
  • UnityEngine.UIElements.IBindable
  • UnityEngine.UIElements.INotifyValueChanged<System.Boolean>
  • UnityEngine.UIElements.IMixedValueSupport