Currently, if I have 10 TextLabels I have to create 10 UITextSizeConstrain, one for each TextLabel.
Is it possible to apply a single UITextSizeConstraint to multiple objects?
Well, you could do something like this:
Script version
local myLabels = parent of the labels
local myUISizeContraint = script. SIZE CONTRAINT NAME HERE
for _, label in ipairs(myLabels:GetChildren()) do
myUISizeContraint:Clone().Parent = label
end
Command bar version
local myLabels = game.Selection:Get()
local myUISizeContraint = SIZE CONTRAINT LOCATION (workspace.myUIContraint)
for _, label in ipairs(myLabels) do
myUISizeContraint:Clone().Parent = label
end
Not tested the code.
1 Like
Well, based on your post, the answer to my question is:
ONLY VIA SCRIPT.