Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

publicItemScale()

蕉饼 edited this page Dec 30, 2022 · 1 revision

介绍

publicOnPress()用于设置元素形状大小

如何使用

publicItemScale(item,x,y)

参数 定义 格式
item 元素名 字符串
x x轴缩放 数字
y y轴缩放 数字

案例

在地图放入一个名称为Box3GUI.vb的模型

在代码区写入

world.gui.publicItemAdd('testbtn',[10,10],'mesh/Box3GUI.vb','btn')

world.gui.publicItemScale('testbtn',0.5,0.5)

长宽各缩短为原来的1/2

注意事项

  • 玩家与世界都有执行权限

Clone this wiki locally