Yeah uhhh, I updated it a couple days ago and it doesnt take those constructors anymore.
There’s a small example at the top inside the modulescript that could help you, but I should probably make a new writeup on how to use it since that little bit clearly wasn’t enough xd, my apologies.
UISpring:Apply3DSpringEffect()
takes in an optional SurfaceGuiProperties
table, which is just a dictionary of properties for it, something like this:
UISpring:Apply3DSpringEffect({
LightInfluence = 0;
ZIndexBehavior = Enum.ZIndexBehavior.Global;
--etc. etc.
})
If you want to change the properties of the spring effect, thats now done with a new parameters constructor for when you first make the UISpring object.
local SpringParams = EzUISprings.newSpringParams()
local UISpringObject = EzUISprings.new(MyGuiObject, SpringParams)
The SpringParams governs the behaviors of the spring, and is just a dictionary given this type:
type SpringParams = {
SizeFactor: number;
SpringIntensity: number;
MouseIntensity: number;
UseCameraFocus: boolean;
ShowDebug: boolean;
MouseCap: Vector2;
BaseRotationOffset: Vector3;
};
You can also apply new spring params after you start displaying the object too, with UISpring:UpdateSpringParams(NewSpringParams)
In the end though, your new script should look something like
local EzUISprings = require(...) --path to module
local MyGuiObject = (...) -- path to object
local SpringParams = EzUISprings.newSpringParams({
SpringIntensity = 2;
BaseRotationOffest = Vector3.new(0, -90, 0);
})
local UISpringObject = EzUISprings.new(MyGuiObject, SpringParams)
UISpring:Apply3DSpringEffect({})
Let this be a lesson to myself not to update things out of the blue without writing extensive documentation! If there are any more issues then i’ll make a full write up but for now i will leave it be.