【发布时间】:2020-10-07 01:09:28
【问题描述】:
当尝试在我的 Gui 中使用比例尺缩小 y 轴的大小时,会出现错误消息,我应该使用哪个?
-- method #1 (using vector2.new)
frame.Size = Vector.new("0.33, 0, 0.1125, 0") -- with quotes and brackets
frame.Size = Vector2.new{0.33, 0},{0.2, 0} -- with no quotes and 2 sets of table brackets
frame.Size = Vector2.new{0.33, 0, 0.2, 0} -- with no quotes and 1 set of table brackets
-- method #2 (not using Vector2.new)
frame.Size = ("0.33, 0, 0.2, 0") -- using quotes and table brackets
frame.Size = {0.33, 0},{0.2, 0} -- using 2 sets of table brackets
frame.Size = {0.33, 0, 0.2, 0} -- using 1 set of table brackets
请帮忙,谢谢!
【问题讨论】:
-
错误信息是什么意思?无论如何,我不认为
frame.Size = Vector2.new{0.33, 0},{0.2, 0}和frame.Size = {0.33, 0},{0.2, 0}会起作用。 -
所有错误信息都是“预期的,得到 Vector2)”
-
看来你需要
UDim2:frame.Size = UDim2.new(0.33, 0, 0.2, 0)。 -
谢谢,我现在就试试
-
那么请接受作为答案。