Skip to content

UI components

There are 34 UI components.

TypesUnityEngine.UI.AspectRatioFitter
TransformGets a RectTransform

It has 3 attributes.

AttributesTypesDefault valueChoices
aspectModeEnumerationsNoneNone・WidthControlsHeight・HeightControlsWidth・FitInParent・EnvelopeParent
aspectRatiofloat10.001 – 1000
enabledbooltrue
TypesUnityEngine.EventSystems.BaseInput

It has 1 attributes.

AttributesTypesDefault valueChoices
enabledbooltrue
TypesUnityEngine.UI.Button

It has 27 attributes.

AttributesTypesDefault valueChoices
animationTriggers.disabledTriggerstringDisabled
animationTriggers.highlightedTriggerstringHighlighted
animationTriggers.normalTriggerstringNormal
animationTriggers.pressedTriggerstringPressed
animationTriggers.selectedTriggerstringSelected
colors.colorMultiplierfloat1
colors.disabledColorColor#C8C8C880
colors.fadeDurationfloat0.1≥ 0
colors.highlightedColorColor#F5F5F5
colors.normalColorColor#FFFFFF
colors.pressedColorColor#C8C8C8
colors.selectedColorColor#F5F5F5
enabledbooltrue
interactablebooltrue
navigation.modeEnumerationsAutomaticNone・Horizontal・Vertical・Automatic・Explicit
navigation.selectOnDownSelectableNoneA path to an object in the same prefab
navigation.selectOnLeftSelectableNoneA path to an object in the same prefab
navigation.selectOnRightSelectableNoneA path to an object in the same prefab
navigation.selectOnUpSelectableNoneA path to an object in the same prefab
navigation.wrapAroundboolfalse
onClickUnityEventNone
spriteState.disabledSpriteSpriteNone
spriteState.highlightedSpriteSpriteNone
spriteState.pressedSpriteSpriteNone
spriteState.selectedSpriteSpriteNone
targetGraphicGraphicNoneA path to an object in the same prefab
transitionEnumerationsColorTintNone・ColorTint・SpriteSwap・Animation
TypesUnityEngine.Canvas
TransformGets a RectTransform

It has 15 attributes.

AttributesTypesDefault valueChoices
additionalShaderChannelsEnum (combinable)NoneNone・TexCoord1・TexCoord2・TexCoord3・Normal・Tangent
cameraCameraNoneA path to an object in the same prefab
enabledbooltrue
normalizedSortingGridSizefloat0
overridePixelPerfectboolfalse
overrideSortingboolfalse
pixelPerfectboolfalse
planeDistancefloat100
receivesEventsbooltrue
renderModeEnumerationsWorldSpaceScreenSpaceOverlay・ScreenSpaceCamera・WorldSpace
sortingLayerIDint0
sortingOrderint0-32768 – 32767
targetDisplayint0-128 – 127
updateRectTransformForStandaloneEnumerationsEnabledEnabled・Disabled
vertexColorAlwaysGammaSpaceboolfalse
TypesUnityEngine.CanvasGroup

It has 5 attributes.

AttributesTypesDefault valueChoices
alphafloat10 – 1
blocksRaycastsbooltrue
enabledbooltrue
ignoreParentGroupsboolfalse
interactablebooltrue
TypesUnityEngine.CanvasRenderer

It has 1 attributes.

AttributesTypesDefault valueChoices
cullTransparentMeshbooltrue
TypesUnityEngine.UI.CanvasScaler
Components added automaticallyCanvas
TransformGets a RectTransform

It has 12 attributes.

AttributesTypesDefault valueChoices
defaultSpriteDPIfloat96≥ 1
dynamicPixelsPerUnitfloat1
enabledbooltrue
fallbackScreenDPIfloat96
matchWidthOrHeightfloat0
physicalUnitEnumerationsPointsCentimeters・Millimeters・Inches・Points・Picas
presetInfoIsWorldboolfalse
referencePixelsPerUnitfloat100
referenceResolutionVector2800 600
scaleFactorfloat1≥ 0.01
screenMatchModeEnumerationsMatchWidthOrHeightMatchWidthOrHeight・Expand・Shrink
uiScaleModeEnumerationsConstantPixelSizeConstantPixelSize・ScaleWithScreenSize・ConstantPhysicalSize
TypesUnityEngine.UI.ContentSizeFitter
TransformGets a RectTransform

It has 3 attributes.

AttributesTypesDefault valueChoices
enabledbooltrue
horizontalFitEnumerationsUnconstrainedUnconstrained・MinSize・PreferredSize
verticalFitEnumerationsUnconstrainedUnconstrained・MinSize・PreferredSize
TypesUnityEngine.UI.Dropdown
TransformGets a RectTransform

It has 34 attributes.

AttributesTypesDefault valueChoices
alphaFadeSpeedfloat0.15
animationTriggers.disabledTriggerstringDisabled
animationTriggers.highlightedTriggerstringHighlighted
animationTriggers.normalTriggerstringNormal
animationTriggers.pressedTriggerstringPressed
animationTriggers.selectedTriggerstringSelected
captionImageImageNoneA path to an object in the same prefab
captionTextTextNoneA path to an object in the same prefab
colors.colorMultiplierfloat1
colors.disabledColorColor#C8C8C880
colors.fadeDurationfloat0.1≥ 0
colors.highlightedColorColor#F5F5F5
colors.normalColorColor#FFFFFF
colors.pressedColorColor#C8C8C8
colors.selectedColorColor#F5F5F5
enabledbooltrue
interactablebooltrue
itemImageImageNoneA path to an object in the same prefab
itemTextTextNoneA path to an object in the same prefab
navigation.modeEnumerationsAutomaticNone・Horizontal・Vertical・Automatic・Explicit
navigation.selectOnDownSelectableNoneA path to an object in the same prefab
navigation.selectOnLeftSelectableNoneA path to an object in the same prefab
navigation.selectOnRightSelectableNoneA path to an object in the same prefab
navigation.selectOnUpSelectableNoneA path to an object in the same prefab
navigation.wrapAroundboolfalse
onValueChangedUnityEventNone
spriteState.disabledSpriteSpriteNone
spriteState.highlightedSpriteSpriteNone
spriteState.pressedSpriteSpriteNone
spriteState.selectedSpriteSpriteNone
targetGraphicGraphicNoneA path to an object in the same prefab
templateRectTransformNoneA path to an object in the same prefab
transitionEnumerationsColorTintNone・ColorTint・SpriteSwap・Animation
valueint0
Attributes of the child element <OptionData> (Arrays of structs)TypesDefault value
textstringEmpty
imageSprite assetNone
TypesUnityEngine.EventSystems.EventSystem

It has 4 attributes.

AttributesTypesDefault valueChoices
enabledbooltrue
firstSelectedGameObjectNoneA path to an object in the same prefab
pixelDragThresholdint10
sendNavigationEventsbooltrue
TypesUnityEngine.EventSystems.EventTrigger

It has 1 attributes.

AttributesTypesDefault valueChoices
enabledbooltrue
TypesUnityEngine.UI.GraphicRaycaster
Components added automaticallyCanvas
TransformGets a RectTransform

It has 4 attributes.

AttributesTypesDefault valueChoices
blockingMaskLayerMaskEverything
blockingObjectsEnumerationsNoneNone・TwoD・ThreeD・All
enabledbooltrue
ignoreReversedGraphicsbooltrue
TypesUnityEngine.UI.GridLayoutGroup
TransformGets a RectTransform

It has 12 attributes.

AttributesTypesDefault valueChoices
cellSizeVector2100 100
childAlignmentEnumerationsUpperLeftUpperLeft・UpperCenter・UpperRight・MiddleLeft・MiddleCenter・MiddleRight・LowerLeft・LowerCenter・LowerRight
constraintEnumerationsFlexibleFlexible・FixedColumnCount・FixedRowCount
constraintCountint2
enabledbooltrue
padding.bottomint0
padding.leftint0
padding.rightint0
padding.topint0
spacingVector20 0
startAxisEnumerationsHorizontalHorizontal・Vertical
startCornerEnumerationsUpperLeftUpperLeft・UpperRight・LowerLeft・LowerRight
TypesUnityEngine.UI.HorizontalLayoutGroup
TransformGets a RectTransform

It has 14 attributes.

AttributesTypesDefault valueChoices
childAlignmentEnumerationsUpperLeftUpperLeft・UpperCenter・UpperRight・MiddleLeft・MiddleCenter・MiddleRight・LowerLeft・LowerCenter・LowerRight
childControlHeightboolfalse
childControlWidthboolfalse
childForceExpandHeightbooltrue
childForceExpandWidthbooltrue
childScaleHeightboolfalse
childScaleWidthboolfalse
enabledbooltrue
padding.bottomint0
padding.leftint0
padding.rightint0
padding.topint0
reverseArrangementboolfalse
spacingfloat0
TypesUnityEngine.UI.Image
Components added automaticallyCanvasRenderer
TransformGets a RectTransform

It has 17 attributes.

AttributesTypesDefault valueChoices
colorColor#FFFFFF
enabledbooltrue
fillAmountfloat10 – 1
fillCenterbooltrue
fillClockwisebooltrue
fillMethodEnumerationsRadial360Horizontal・Vertical・Radial90・Radial180・Radial360
fillOriginint0
maskablebooltrue
materialMaterialNone
onCullStateChangedUnityEventNone
pixelsPerUnitMultiplierfloat1≥ 0.01
preserveAspectboolfalse
raycastPaddingVector40 0 0 0
raycastTargetbooltrue
spriteSpriteNone
typeEnumerationsSimpleSimple・Sliced・Tiled・Filled
useSpriteMeshboolfalse
TypesUnityEngine.UI.InputField

It has 46 attributes.

AttributesTypesDefault valueChoices
animationTriggers.disabledTriggerstringDisabled
animationTriggers.highlightedTriggerstringHighlighted
animationTriggers.normalTriggerstringNormal
animationTriggers.pressedTriggerstringPressed
animationTriggers.selectedTriggerstringSelected
caretBlinkRatefloat0.85
caretColorColor#323232
caretWidthint1
characterLimitint0≥ 0
characterValidationEnumerationsNoneNone・Integer・Decimal・Alphanumeric・Name・EmailAddress
colors.colorMultiplierfloat1
colors.disabledColorColor#C8C8C880
colors.fadeDurationfloat0.1≥ 0
colors.highlightedColorColor#F5F5F5
colors.normalColorColor#FFFFFF
colors.pressedColorColor#C8C8C8
colors.selectedColorColor#F5F5F5
contentTypeEnumerationsStandardStandard・Autocorrected・IntegerNumber・DecimalNumber・Alphanumeric・Name・EmailAddress・Password・Pin・Custom
customCaretColorboolfalse
enabledbooltrue
hideMobileInputboolfalse
inputTypeEnumerationsStandardStandard・AutoCorrect・Password
interactablebooltrue
keyboardTypeEnumerationsDefaultDefault・ASCIICapable・NumbersAndPunctuation・URL・NumberPad・PhonePad・NamePhonePad・EmailAddress・NintendoNetworkAccount・Social・Search・DecimalPad・OneTimeCode
lineTypeEnumerationsSingleLineSingleLine・MultiLineSubmit・MultiLineNewline
navigation.modeEnumerationsAutomaticNone・Horizontal・Vertical・Automatic・Explicit
navigation.selectOnDownSelectableNoneA path to an object in the same prefab
navigation.selectOnLeftSelectableNoneA path to an object in the same prefab
navigation.selectOnRightSelectableNoneA path to an object in the same prefab
navigation.selectOnUpSelectableNoneA path to an object in the same prefab
navigation.wrapAroundboolfalse
onDidEndEditUnityEventNone
onSubmitUnityEventNone
onValueChangedUnityEventNone
placeholderGraphicNoneA path to an object in the same prefab
readOnlyboolfalse
selectionColorColor#A8CEFFC0
shouldActivateOnSelectbooltrue
spriteState.disabledSpriteSpriteNone
spriteState.highlightedSpriteSpriteNone
spriteState.pressedSpriteSpriteNone
spriteState.selectedSpriteSpriteNone
targetGraphicGraphicNoneA path to an object in the same prefab
textstringEmpty
textComponentTextNoneA path to an object in the same prefab
transitionEnumerationsColorTintNone・ColorTint・SpriteSwap・Animation
TypesUnityEngine.UI.LayoutElement
TransformGets a RectTransform

It has 9 attributes.

AttributesTypesDefault valueChoices
enabledbooltrue
flexibleHeightfloat-1
flexibleWidthfloat-1
ignoreLayoutboolfalse
layoutPriorityint1
minHeightfloat-1
minWidthfloat-1
preferredHeightfloat-1
preferredWidthfloat-1
TypesUnityEngine.UI.Mask
TransformGets a RectTransform

It has 2 attributes.

AttributesTypesDefault valueChoices
enabledbooltrue
showMaskGraphicbooltrue
TypesUnityEngine.UI.Outline

It has 4 attributes.

AttributesTypesDefault valueChoices
effectColorColor#00000080
effectDistanceVector21 -1
enabledbooltrue
useGraphicAlphabooltrue
TypesUnityEngine.EventSystems.PhysicsRaycaster
Components added automaticallyCamera

It has 3 attributes.

AttributesTypesDefault valueChoices
enabledbooltrue
eventMaskLayerMaskEverything
maxRayIntersectionsint0
TypesUnityEngine.UI.PositionAsUV1

It has 1 attributes.

AttributesTypesDefault valueChoices
enabledbooltrue
TypesUnityEngine.UI.RawImage
Components added automaticallyCanvasRenderer
TransformGets a RectTransform

It has 9 attributes.

AttributesTypesDefault valueChoices
colorColor#FFFFFF
enabledbooltrue
maskablebooltrue
materialMaterialNone
onCullStateChangedUnityEventNone
raycastPaddingVector40 0 0 0
raycastTargetbooltrue
textureTextureNone
uvRectRect0 0 1 1
TypesUnityEngine.UI.RectMask2D
TransformGets a RectTransform

It has 2 attributes.

AttributesTypesDefault valueChoices
enabledbooltrue
paddingVector40 0 0 0
TypesUnityEngine.UI.ScrollRect
TransformGets a RectTransform

It has 17 attributes.

AttributesTypesDefault valueChoices
contentRectTransformNoneA path to an object in the same prefab
decelerationRatefloat0.135
elasticityfloat0.1
enabledbooltrue
horizontalbooltrue
horizontalScrollbarScrollbarNoneA path to an object in the same prefab
horizontalScrollbarSpacingfloat0
horizontalScrollbarVisibilityEnumerationsPermanentPermanent・AutoHide・AutoHideAndExpandViewport
inertiabooltrue
movementTypeEnumerationsElasticUnrestricted・Elastic・Clamped
onValueChangedUnityEventNone
scrollSensitivityfloat1
verticalbooltrue
verticalScrollbarScrollbarNoneA path to an object in the same prefab
verticalScrollbarSpacingfloat0
verticalScrollbarVisibilityEnumerationsPermanentPermanent・AutoHide・AutoHideAndExpandViewport
viewportRectTransformNoneA path to an object in the same prefab
TypesUnityEngine.UI.Scrollbar
TransformGets a RectTransform

It has 32 attributes.

AttributesTypesDefault valueChoices
animationTriggers.disabledTriggerstringDisabled
animationTriggers.highlightedTriggerstringHighlighted
animationTriggers.normalTriggerstringNormal
animationTriggers.pressedTriggerstringPressed
animationTriggers.selectedTriggerstringSelected
colors.colorMultiplierfloat1
colors.disabledColorColor#C8C8C880
colors.fadeDurationfloat0.1≥ 0
colors.highlightedColorColor#F5F5F5
colors.normalColorColor#FFFFFF
colors.pressedColorColor#C8C8C8
colors.selectedColorColor#F5F5F5
directionEnumerationsLeftToRightLeftToRight・RightToLeft・BottomToTop・TopToBottom
enabledbooltrue
handleRectRectTransformNoneA path to an object in the same prefab
interactablebooltrue
navigation.modeEnumerationsAutomaticNone・Horizontal・Vertical・Automatic・Explicit
navigation.selectOnDownSelectableNoneA path to an object in the same prefab
navigation.selectOnLeftSelectableNoneA path to an object in the same prefab
navigation.selectOnRightSelectableNoneA path to an object in the same prefab
navigation.selectOnUpSelectableNoneA path to an object in the same prefab
navigation.wrapAroundboolfalse
numberOfStepsint0
onValueChangedUnityEventNone
sizefloat0.20 – 1
spriteState.disabledSpriteSpriteNone
spriteState.highlightedSpriteSpriteNone
spriteState.pressedSpriteSpriteNone
spriteState.selectedSpriteSpriteNone
targetGraphicGraphicNoneA path to an object in the same prefab
transitionEnumerationsColorTintNone・ColorTint・SpriteSwap・Animation
valuefloat0
TypesUnityEngine.UI.Selectable

It has 26 attributes.

AttributesTypesDefault valueChoices
animationTriggers.disabledTriggerstringDisabled
animationTriggers.highlightedTriggerstringHighlighted
animationTriggers.normalTriggerstringNormal
animationTriggers.pressedTriggerstringPressed
animationTriggers.selectedTriggerstringSelected
colors.colorMultiplierfloat1
colors.disabledColorColor#C8C8C880
colors.fadeDurationfloat0.1≥ 0
colors.highlightedColorColor#F5F5F5
colors.normalColorColor#FFFFFF
colors.pressedColorColor#C8C8C8
colors.selectedColorColor#F5F5F5
enabledbooltrue
interactablebooltrue
navigation.modeEnumerationsAutomaticNone・Horizontal・Vertical・Automatic・Explicit
navigation.selectOnDownSelectableNoneA path to an object in the same prefab
navigation.selectOnLeftSelectableNoneA path to an object in the same prefab
navigation.selectOnRightSelectableNoneA path to an object in the same prefab
navigation.selectOnUpSelectableNoneA path to an object in the same prefab
navigation.wrapAroundboolfalse
spriteState.disabledSpriteSpriteNone
spriteState.highlightedSpriteSpriteNone
spriteState.pressedSpriteSpriteNone
spriteState.selectedSpriteSpriteNone
targetGraphicGraphicNoneA path to an object in the same prefab
transitionEnumerationsColorTintNone・ColorTint・SpriteSwap・Animation
TypesUnityEngine.UI.Shadow

It has 4 attributes.

AttributesTypesDefault valueChoices
effectColorColor#00000080
effectDistanceVector21 -1
enabledbooltrue
useGraphicAlphabooltrue
TypesUnityEngine.UI.Slider
TransformGets a RectTransform

It has 34 attributes.

AttributesTypesDefault valueChoices
animationTriggers.disabledTriggerstringDisabled
animationTriggers.highlightedTriggerstringHighlighted
animationTriggers.normalTriggerstringNormal
animationTriggers.pressedTriggerstringPressed
animationTriggers.selectedTriggerstringSelected
colors.colorMultiplierfloat1
colors.disabledColorColor#C8C8C880
colors.fadeDurationfloat0.1≥ 0
colors.highlightedColorColor#F5F5F5
colors.normalColorColor#FFFFFF
colors.pressedColorColor#C8C8C8
colors.selectedColorColor#F5F5F5
directionEnumerationsLeftToRightLeftToRight・RightToLeft・BottomToTop・TopToBottom
enabledbooltrue
fillRectRectTransformNoneA path to an object in the same prefab
handleRectRectTransformNoneA path to an object in the same prefab
interactablebooltrue
maxValuefloat1
minValuefloat0
navigation.modeEnumerationsAutomaticNone・Horizontal・Vertical・Automatic・Explicit
navigation.selectOnDownSelectableNoneA path to an object in the same prefab
navigation.selectOnLeftSelectableNoneA path to an object in the same prefab
navigation.selectOnRightSelectableNoneA path to an object in the same prefab
navigation.selectOnUpSelectableNoneA path to an object in the same prefab
navigation.wrapAroundboolfalse
onValueChangedUnityEventNone
spriteState.disabledSpriteSpriteNone
spriteState.highlightedSpriteSpriteNone
spriteState.pressedSpriteSpriteNone
spriteState.selectedSpriteSpriteNone
targetGraphicGraphicNoneA path to an object in the same prefab
transitionEnumerationsColorTintNone・ColorTint・SpriteSwap・Animation
valuefloat0
wholeNumbersboolfalse
TypesUnityEngine.EventSystems.StandaloneInputModule
Components added automaticallyEventSystem

It has 9 attributes.

AttributesTypesDefault valueChoices
cancelButtonstringCancel
enabledbooltrue
forceModuleActiveboolfalse
horizontalAxisstringHorizontal
inputActionsPerSecondfloat10
repeatDelayfloat0.5
sendPointerHoverToParentbooltrue
submitButtonstringSubmit
verticalAxisstringVertical
TypesUnityEngine.UI.Text
Components added automaticallyCanvasRenderer
TransformGets a RectTransform

It has 20 attributes.

AttributesTypesDefault valueChoices
alignByGeometryboolfalse
alignmentEnumerationsUpperLeftUpperLeft・UpperCenter・UpperRight・MiddleLeft・MiddleCenter・MiddleRight・LowerLeft・LowerCenter・LowerRight
colorColor#FFFFFF
enabledbooltrue
fontFontA default asset
fontSizeint14≤ 300
fontStyleEnumerationsNormalNormal・Bold・Italic・BoldAndItalic
horizontalOverflowEnumerationsWrapWrap・Overflow
lineSpacingfloat1
maskablebooltrue
materialMaterialNone
onCullStateChangedUnityEventNone
raycastPaddingVector40 0 0 0
raycastTargetbooltrue
resizeTextForBestFitboolfalse
resizeTextMaxSizeint40≤ 300
resizeTextMinSizeint10
supportRichTextbooltrue
textstringEmpty
verticalOverflowEnumerationsTruncateTruncate・Overflow
TypesUnityEngine.UI.Toggle
TransformGets a RectTransform

It has 31 attributes.

AttributesTypesDefault valueChoices
animationTriggers.disabledTriggerstringDisabled
animationTriggers.highlightedTriggerstringHighlighted
animationTriggers.normalTriggerstringNormal
animationTriggers.pressedTriggerstringPressed
animationTriggers.selectedTriggerstringSelected
colors.colorMultiplierfloat1
colors.disabledColorColor#C8C8C880
colors.fadeDurationfloat0.1≥ 0
colors.highlightedColorColor#F5F5F5
colors.normalColorColor#FFFFFF
colors.pressedColorColor#C8C8C8
colors.selectedColorColor#F5F5F5
enabledbooltrue
graphicGraphicNoneA path to an object in the same prefab
groupToggleGroupNoneA path to an object in the same prefab
interactablebooltrue
isOnboolfalse
navigation.modeEnumerationsAutomaticNone・Horizontal・Vertical・Automatic・Explicit
navigation.selectOnDownSelectableNoneA path to an object in the same prefab
navigation.selectOnLeftSelectableNoneA path to an object in the same prefab
navigation.selectOnRightSelectableNoneA path to an object in the same prefab
navigation.selectOnUpSelectableNoneA path to an object in the same prefab
navigation.wrapAroundboolfalse
onValueChangedUnityEventNone
spriteState.disabledSpriteSpriteNone
spriteState.highlightedSpriteSpriteNone
spriteState.pressedSpriteSpriteNone
spriteState.selectedSpriteSpriteNone
targetGraphicGraphicNoneA path to an object in the same prefab
toggleTransitionEnumerationsFadeNone・Fade
transitionEnumerationsColorTintNone・ColorTint・SpriteSwap・Animation
TypesUnityEngine.UI.ToggleGroup

It has 2 attributes.

AttributesTypesDefault valueChoices
allowSwitchOffboolfalse
enabledbooltrue
TypesUnityEngine.EventSystems.TouchInputModule
Components added automaticallyEventSystem

It has 3 attributes.

AttributesTypesDefault valueChoices
enabledbooltrue
forceModuleActiveboolfalse
sendPointerHoverToParentbooltrue
TypesUnityEngine.UI.VerticalLayoutGroup
TransformGets a RectTransform

It has 14 attributes.

AttributesTypesDefault valueChoices
childAlignmentEnumerationsUpperLeftUpperLeft・UpperCenter・UpperRight・MiddleLeft・MiddleCenter・MiddleRight・LowerLeft・LowerCenter・LowerRight
childControlHeightboolfalse
childControlWidthboolfalse
childForceExpandHeightbooltrue
childForceExpandWidthbooltrue
childScaleHeightboolfalse
childScaleWidthboolfalse
enabledbooltrue
padding.bottomint0
padding.leftint0
padding.rightint0
padding.topint0
reverseArrangementboolfalse
spacingfloat0