-
Notifications
You must be signed in to change notification settings - Fork 2
Transformable
Isuru Kusumal Rajapakse edited this page Jun 17, 2017
·
1 revision
- Represents a component that defines a behaviors like transform, center etc.
Void
transform the object to the given scale
| Name | Type | Description | |
|---|---|---|---|
| width | int |
- desired width. | |
| height | int |
- desired height. |
Void
transform the object to the given scale
| Name | Type | Description | |
|---|---|---|---|
| byX | int |
- increse/decrease in width. | |
| byY | int |
- increse/decrease in height. |
Void
sets the origin of the object to the given position if called without parameters, it defaults to center of the object
| Name | Type | Description | |
|---|---|---|---|
| x=width/2 | int |
- anchor in the x position. | Optional |
| y=height/2 | int |
- anchor in the y position. | Optional |
Void