文档

Unity Engine


User Manual

Script Reference

Unity Engine


SetCheckedPseudoState(bool)

Sets whether or not this element is displayed as being checked.
阅读时间1 分钟最后更新于 24 天前

Definition

public void SetCheckedPseudoState(bool value)

Parameters

value

Remarks

If set to true, this element will match the
:checked
pseudo-class.
Some elements, like the Toggle, use this method internally to reflect changes to their internal state. Calling this method on those elements may have no effect or only result in a temporary change in their displayed styles.