unity 脚本组件_Flash脚本-单选按钮组件

unity 脚本组件

Flash’s radio button component makes creating radio buttons extremely easy.

Flash的单选按钮组件使创建单选按钮非常容易。

1. To open the components panel, hit ctrl+f7.

1.要打开组件面板,请按ctrl + f7。

2. Drag the RadioButton component onto the stage. Select the RadioButton component in Frame 1, and the component’s parameters will appear in the Property inspector.

2.将RadioButton组件拖到舞台上。 在第1帧中选择RadioButton组件,该组件的参数将出现在“属性”检查器中。

3. Type "radio" into the Property inspector Instance Name text box.

3.在 “属性检查器实例名称”文本框中键入“ radio”。

4. The inital Value parameter specifies whether the initial state of the RadioButton component is selected (True) or unselected (False).

4.初始值参数指定RadioButton组件的初始状态是处于选中状态(True)还是处于未选中状态(False)。

So, in the Initial Value parameter pop-up menu, select "false" so that the inital state of the radiobutton is unselected.

因此,在“初始值”参数弹出菜单中,选择“ false”,以便取消选择单选按钮的初始状态。

1185_1

5. Leave the Group Name and Data parameters as they are.

5.保留组名称和数据参数不变。

6. In the Label Placement parameter pop-up menu, leave the default value set to right alignment. This will ensure that the label will be displayed to the right of our radio button.

6.在“标签放置”参数弹出菜单中,将默认值设置为右对齐。 这将确保标签将显示在我们的单选按钮的右侧。

That’s all it takes. Test your movie!

这就是全部。 测试你的电影!

翻译自: https://www.sitepoint.com/radio-button-component/

unity 脚本组件

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值