You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea here is that the GUI can snap to certain predefined points defined by the user on the screen - e.g. left side, centre or right side of the screen.
Using the v2 API, it could be something like:
constcontroller=Snapdragon.createDragController(gui,options,{// ... other snap optionsSnapPoints: [// ... Array of snap points]});// Alsocontroller.SetSnapPoints([// Array of snap points]);
A snap point could be an interface like such:
interfaceSnapPoint{Position: UDim2;// The position of this snap pointAnchor: Vector2|undefined;// The anchor (center) of the GUI's relative snap point}
Maybe could be other behaviours to it, like snap margins as well.
The text was updated successfully, but these errors were encountered:
The idea here is that the GUI can snap to certain predefined points defined by the user on the screen - e.g. left side, centre or right side of the screen.
Using the v2 API, it could be something like:
A snap point could be an interface like such:
Maybe could be other behaviours to it, like snap margins as well.
The text was updated successfully, but these errors were encountered: