Archive 17/01/2023.

Billboard size from texture aspect ratio

Mike

It would be cool if there was an option to automatically size a Billboard according to its texture width and height, so that its aspect ratio match.

Currently I’m using piece of code below to achieve this (in lua):

billboardSet:GetBillboard(0).size = Vector2(texture.width / texture.height, 1)