Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | anonymous |
Using Godot 3.0.2
I have added click masks using code.
Because there was a problem adding it through the editor.
func _ready():
var Tree_image = Image.new()
Tree_image.load("res://Assets/Tree.png")
var Tree_mask = BitMap.new()
Tree_mask.create_from_image_alpha(Tree_image)
texture_click_mask = Tree_mask
After exporting the project, I need to add the Assets folder with containing .png files.
Otherwise I get these errors: