9 lines
164 B
GDScript3
9 lines
164 B
GDScript3
|
extends Control
|
||
|
|
||
|
class_name arrowImage
|
||
|
|
||
|
|
||
|
func set_image(texture:Texture2D,scaleto:float):
|
||
|
$Sprite2D.set_texture(texture)
|
||
|
$Sprite2D.scale=Vector2(scaleto,scaleto)
|