UIAspectRatioConstraint
Constrains an interface element's width-to-height ratio.
- Creatable
Instance.new("UIAspectRatioConstraint")- Inherits
- UIConstraintUIComponentUIBaseInstance
- Replication
- Standard
Behavior
UIAspectRatioConstraint constrains an interface element's width-to-height ratio.
Summary
Members4
Properties3
The required width divided by height.
How the constraint determines the available size for the aspect ratio.
The dimension used to derive the other dimension under the aspect-ratio constraint.
Methods1
Returns this instance if it is an ExecutionGroup.
Properties
AspectRatio
UIAspectRatioConstraint.AspectRatio: number = 1The required width divided by height.
AspectType
UIAspectRatioConstraint.AspectType: Enum.AspectType = Enum.AspectType.FitWithinMaxSizeHow the constraint determines the available size for the aspect ratio.
DominantAxis
UIAspectRatioConstraint.DominantAxis: Enum.DominantAxis = Enum.DominantAxis.HeightThe dimension used to derive the other dimension under the aspect-ratio constraint.
Methods
GetExecutionGroup
UIAspectRatioConstraint:GetExecutionGroup(): ExecutionGroup?Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.
Inherited members
Inherited47
Instance47
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying