This site is no longer kept up to date. It has been superseded by the Roblox API Reference. Please update your bookmarks.
Tags: notbrowsable
Returns | Function | |
---|---|---|
bool | TweenPosition ( UDim2 endPosition, EasingDirection easingDirection = Out, EasingStyle easingStyle = Quad, float time = 1, bool override = false, Function callback = nil ) | |
bool | TweenSize ( UDim2 endSize, EasingDirection easingDirection = Out, EasingStyle easingStyle = Quad, float time = 1, bool override = false, Function callback = nil ) | |
bool | TweenSizeAndPosition ( UDim2 endSize, UDim2 endPosition, EasingDirection easingDirection = Out, EasingStyle easingStyle = Quad, float time = 1, bool override = false, Function callback = nil ) |
Event | History | |
---|---|---|
InputBegan ( Instance input ) | (+0.130) | |
InputChanged ( Instance input ) | (+0.130) | |
InputEnded ( Instance input ) | (+0.130) | |
MouseEnter ( int x, int y ) | ||
MouseLeave ( int x, int y ) | ||
MouseMoved ( int x, int y ) | ||
MouseWheelBackward ( int x, int y ) | (+0.69) | |
MouseWheelForward ( int x, int y ) | (+0.69) | |
SelectionGained ( ) | (+0.207) | |
SelectionLost ( ) | (+0.207) | |
TouchLongPress ( Array touchPositions, UserInputState state ) | (+0.130) | |
TouchPan ( Array touchPositions, Vector2 totalTranslation, Vector2 velocity, UserInputState state ) | (+0.130) | |
TouchPinch ( Array touchPositions, float scale, float velocity, UserInputState state ) | (+0.130) | |
TouchRotate ( Array touchPositions, float rotation, float velocity, UserInputState state ) | (+0.130) | |
TouchSwipe ( SwipeDirection swipeDirection, int numberOfTouches ) | (+0.130) | |
TouchTap ( Array touchPositions ) | (+0.130) | |
DragBegin ( UDim2 initialPosition ) | ||
DragStopped ( int x, int y ) |
Enum | History | |
---|---|---|
EasingDirection | ||
EasingStyle | ||
SizeConstraint | ||
SwipeDirection | (+0.113) | |
UserInputState | (+0.113) |
Version History:(+0.197)
Version History:(+0.197)
Version History:(+0.197)
Version History:(+0.197)
Version History:(+0.200)
Tags: hidden
Deprecated: This member is deprecated.
Interpolates the Position property from its current value to endPosition, for the duration of time seconds.
easingDirection indicates the timing function to be used, while easingStyle indicates the interpolation function to be used.
override indicates whether the tween will override another tween that is currently running. This only applies to functions that modify the Position.
If callback is specified, then it will be called after the tween finishes.
It receives a TweenStatus enum as its only argument. If the tween successfully
finished, then this will be TweenStatus.Completed
. If it was overridden,
then this will be TweenStatus.Canceled
.
This function returns whether it was able to begin tweening. If there is another tweening function currently modifying the Position, and override is false, then this will return false. In this case, callback will not be called.
If the GuiObject is not the descendant of a DataModel, then this function will throw the following error:
Can only tween objects in the workspace
Interpolates the Size property from its current value to endSize, for the duration of time seconds.
easingDirection indicates the timing function to be used, while easingStyle indicates the interpolation function to be used.
override indicates whether the tween will override another tween that is currently running. This only applies to functions that modify the Size.
If callback is specified, then it will be called after the tween finishes.
It receives a TweenStatus enum as its only argument. If the tween successfully
finished, then this will be TweenStatus.Completed
. If it was overridden,
then this will be TweenStatus.Canceled
.
This function returns whether it was able to begin tweening. If there is another tweening function currently modifying the Size, and override is false, then this will return false. In this case, callback will not be called.
If the GuiObject is not the descendant of a DataModel, then this function will throw the following error:
Can only tween objects in the workspace
Combines TweenSize and TweenPosition into a single call. This is similar to the following:
object:TweenSize(size, ...)
object:TweenPosition(position, ...)
This implies that the Size and Position are tweened independently, and so they can be overridden independently. The callback function will also be called twice, once for each tween.
The only difference is that this function will not override the Size or Position independently. That is, if one fails to be overridden, then both will fail.
Version History:(+0.207)
Version History:(+0.207)
Version History:(+0.130)
Version History:(+0.130)
Version History:(+0.130)
Version History:(+0.130)
Version History:(+0.130)
Deprecated: This member is deprecated.