Your new command will either be enabled or disabled, so use the bool (Boolean) menu attribute for configuration.
新命令可以启用,也可以禁用,因此我们对配置的菜单属性使用了bool (Boolean)值。
At this point, a bool type might not seem overly useful. However, Boolean expressions, as their name suggest, rely on them, as you see here.
在这一点上,bool类型可能看起来不是很有用。
ToggleControllerModel (bool on) : sets the visibility of the controller model to the given Boolean state.
根据所给布尔值状态设置控制器模型的可见性。
ToggleControllerModel (bool on) : sets the visibility of the controller model to the given Boolean state.
根据所给布尔值状态设置控制器模型的可见性。
应用推荐