Difference between revisions of "Sprite:setAnchorPoint"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2016.10<br/> '''Class:''' Sprite<br/> === Description === Sets x, y, z anchor position of '''Sprite''' in its relative coordinate...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Sets x, y, z anchor position of '''Sprite''' in its relative coordinates.
 
Sets x, y, z anchor position of '''Sprite''' in its relative coordinates.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Sprite:setAnchorPoint(anchorX,anchorY,anchorZ)
 
Sprite:setAnchorPoint(anchorX,anchorY,anchorZ)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 15:33, 13 July 2023

Available since: Gideros 2016.10
Class: Sprite

Description

Sets x, y, z anchor position of Sprite in its relative coordinates.

Sprite:setAnchorPoint(anchorX,anchorY,anchorZ)

Parameters

anchorX: (number) anchor position in Sprite internal coordinates
anchorY: (number) anchor position in Sprite internal coordinates
anchorZ: (number) anchor position in Sprite internal coordinates optional