Slider — Godot Engine Latest Documentation - Huihoo

Godot Engine latest

Tutorials

  • Learning step by step
  • Engine
  • 2D tutorials
  • 3D tutorials
  • Networking
  • Editor plugins
  • Miscellaneous
  • Asset pipeline

Reference

  • Class reference
    • @GDScript
    • @Global Scope
    • AABB
    • AcceptDialog
    • AnimatedSprite
    • AnimatedSprite3D
    • Animation
    • AnimationPlayer
    • AnimationTreePlayer
    • Area
    • Area2D
    • Array
    • AtlasTexture
    • AudioServer
    • AudioServerSW
    • AudioStream
    • AudioStreamMPC
    • AudioStreamOGGVorbis
    • AudioStreamOpus
    • AudioStreamPlayback
    • AudioStreamSpeex
    • BackBufferCopy
    • BakedLight
    • BakedLightInstance
    • BakedLightSampler
    • BaseButton
    • BitMap
    • BoneAttachment
    • bool
    • BoxContainer
    • BoxShape
    • Button
    • ButtonArray
    • ButtonGroup
    • Camera
    • Camera2D
    • CanvasItem
    • CanvasItemMaterial
    • CanvasItemShader
    • CanvasItemShaderGraph
    • CanvasLayer
    • CanvasModulate
    • CapsuleShape
    • CapsuleShape2D
    • CenterContainer
    • CheckBox
    • CheckButton
    • CircleShape2D
    • CollisionObject
    • CollisionObject2D
    • CollisionPolygon
    • CollisionPolygon2D
    • CollisionShape
    • CollisionShape2D
    • Color
    • ColorArray
    • ColorPicker
    • ColorPickerButton
    • ColorRamp
    • ConcavePolygonShape
    • ConcavePolygonShape2D
    • ConeTwistJoint
    • ConfigFile
    • ConfirmationDialog
    • Container
    • Control
    • ConvexPolygonShape
    • ConvexPolygonShape2D
    • CubeMap
    • Curve2D
    • Curve3D
    • DampedSpringJoint2D
    • Dictionary
    • DirectionalLight
    • Directory
    • EditorFileDialog
    • EditorImportPlugin
    • EditorPlugin
    • EditorScenePostImport
    • EditorScript
    • Environment
    • EventPlayer
    • EventStream
    • EventStreamChibi
    • File
    • FileDialog
    • FixedMaterial
    • float
    • Font
    • FuncRef
    • GDFunctionState
    • GDNativeClass
    • GDScript
    • Generic6DOFJoint
    • Geometry
    • GeometryInstance
    • Globals
    • GraphEdit
    • GraphNode
    • GridContainer
    • GridMap
    • GrooveJoint2D
    • HBoxContainer
    • HButtonArray
    • HingeJoint
    • HScrollBar
    • HSeparator
    • HSlider
    • HSplitContainer
    • HTTPClient
    • Image
    • ImageTexture
    • ImmediateGeometry
    • Input
    • InputDefault
    • InputEvent
    • InputEventAction
    • InputEventJoystickButton
    • InputEventJoystickMotion
    • InputEventKey
    • InputEventMouseButton
    • InputEventMouseMotion
    • InputEventScreenDrag
    • InputEventScreenTouch
    • InputMap
    • InstancePlaceholder
    • int
    • IntArray
    • InterpolatedCamera
    • IP
    • IP_Unix
    • ItemList
    • Joint
    • Joint2D
    • KinematicBody
    • KinematicBody2D
    • Label
    • LargeTexture
    • Light
    • Light2D
    • LightOccluder2D
    • LineEdit
    • LineShape2D
    • MainLoop
    • MarginContainer
    • Marshalls
    • Material
    • MaterialShader
    • MaterialShaderGraph
    • Matrix3
    • Matrix32
    • MenuButton
    • Mesh
    • MeshDataTool
    • MeshInstance
    • MeshLibrary
    • MultiMesh
    • MultiMeshInstance
    • Mutex
    • Navigation
    • Navigation2D
    • NavigationMesh
    • NavigationMeshInstance
    • NavigationPolygon
    • NavigationPolygonInstance
    • Nil
    • Node
    • Node2D
    • NodePath
    • Object
    • OccluderPolygon2D
    • OmniLight
    • OptionButton
    • OS
    • PackedDataContainer
    • PackedDataContainerRef
    • PackedScene
    • PacketPeer
    • PacketPeerStream
    • PacketPeerUDP
    • Panel
    • PanelContainer
    • ParallaxBackground
    • ParallaxLayer
    • ParticleAttractor2D
    • Particles
    • Particles2D
    • Patch9Frame
    • Path
    • Path2D
    • PathFollow
    • PathFollow2D
    • PathRemap
    • PCKPacker
    • Performance
    • PHashTranslation
    • Physics2DDirectBodyState
    • Physics2DDirectBodyStateSW
    • Physics2DDirectSpaceState
    • Physics2DServer
    • Physics2DServerSW
    • Physics2DShapeQueryParameters
    • Physics2DShapeQueryResult
    • Physics2DTestMotionResult
    • PhysicsBody
    • PhysicsBody2D
    • PhysicsDirectBodyState
    • PhysicsDirectBodyStateSW
    • PhysicsDirectSpaceState
    • PhysicsServer
    • PhysicsServerSW
    • PhysicsShapeQueryParameters
    • PhysicsShapeQueryResult
    • PinJoint
    • PinJoint2D
    • Plane
    • PlaneShape
    • Polygon2D
    • PolygonPathFinder
    • Popup
    • PopupDialog
    • PopupMenu
    • PopupPanel
    • Portal
    • Position2D
    • Position3D
    • ProgressBar
    • ProximityGroup
    • Quad
    • Quat
    • Range
    • RawArray
    • RayCast
    • RayCast2D
    • RayShape
    • RayShape2D
    • RealArray
    • Rect2
    • RectangleShape2D
    • Reference
    • ReferenceFrame
    • RegEx
    • RemoteTransform2D
    • RenderTargetTexture
    • Resource
    • ResourceImportMetadata
    • ResourceInteractiveLoader
    • ResourceLoader
    • ResourcePreloader
    • ResourceSaver
    • RichTextLabel
    • RID
    • RigidBody
    • RigidBody2D
    • Room
    • RoomBounds
    • Sample
    • SampleLibrary
    • SamplePlayer
    • SamplePlayer2D
    • SceneState
    • SceneTree
    • Script
    • ScrollBar
    • ScrollContainer
    • SegmentShape2D
    • Semaphore
    • Separator
    • Shader
    • ShaderGraph
    • ShaderMaterial
    • Shape
    • Shape2D
    • Skeleton
    • Slider
      • Brief Description
      • Member Functions
      • Description
      • Member Function Description
    • SliderJoint
    • SoundPlayer2D
    • SoundRoomParams
    • Spatial
    • SpatialPlayer
    • SpatialSamplePlayer
    • SpatialSound2DServer
    • SpatialSound2DServerSW
    • SpatialSoundServer
    • SpatialSoundServerSW
    • SpatialStreamPlayer
    • SphereShape
    • SpinBox
    • SplitContainer
    • SpotLight
    • Sprite
    • Sprite3D
    • SpriteBase3D
    • SpriteFrames
    • StaticBody
    • StaticBody2D
    • StreamPeer
    • StreamPeerSSL
    • StreamPeerTCP
    • StreamPlayer
    • String
    • StringArray
    • StyleBox
    • StyleBoxEmpty
    • StyleBoxFlat
    • StyleBoxImageMask
    • StyleBoxTexture
    • SurfaceTool
    • TabContainer
    • Tabs
    • TCP_Server
    • TestCube
    • TextEdit
    • Texture
    • TextureButton
    • TextureFrame
    • TextureProgress
    • Theme
    • Thread
    • TileMap
    • TileSet
    • Timer
    • ToolButton
    • TouchScreenButton
    • Transform
    • Translation
    • TranslationServer
    • Tree
    • TreeItem
    • Tween
    • UndoRedo
    • VBoxContainer
    • VButtonArray
    • Vector2
    • Vector2Array
    • Vector3
    • Vector3Array
    • VehicleBody
    • VehicleWheel
    • VideoPlayer
    • VideoStream
    • VideoStreamTheora
    • Viewport
    • ViewportSprite
    • VisibilityEnabler
    • VisibilityEnabler2D
    • VisibilityNotifier
    • VisibilityNotifier2D
    • VisualInstance
    • VisualServer
    • VScrollBar
    • VSeparator
    • VSlider
    • VSplitContainer
    • WeakRef
    • WindowDialog
    • World
    • World2D
    • WorldEnvironment
    • XMLParser
    • YSort
  • Languages
  • Cheat sheets
  • Compiling
  • Advanced

Community

  • Contributing
Godot Engine
  • Docs »
  • Class reference »
  • Slider
  • Edit on GitHub
Slider¶

Inherits: Range < Control < CanvasItem < Node < Object

Inherited By: HSlider, VSlider

Category: Core

Brief Description¶

Base class for GUI Sliders.

Member Functions¶

int get_ticks ( ) const
bool get_ticks_on_borders ( ) const
void set_ticks ( int count )
void set_ticks_on_borders ( bool ticks_on_border )

Description¶

Base class for GUI Sliders.

Member Function Description¶

  • int get_ticks ( ) const

Return amounts of ticks to display on slider.

  • bool get_ticks_on_borders ( ) const

Return true if ticks are visible on borders.

  • void set_ticks ( int count )

Set amount of ticks to display in slider.

  • void set_ticks_on_borders ( bool ticks_on_border )

Set true if ticks are visible on borders.

Read the Docs v: latest Versions latest Downloads pdf htmlzip epub On Read the Docs Project Home Builds Free document hosting provided by Read the Docs.

Từ khóa » Hslider Godot