Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tool
- class_name CustomCamera2D
- extends Camera2D
- # Overriding the set_zoom() method from Camera2D
- func set_zoom(value):
- .set_zoom(value) # I want the set_zoom() setter of my class to do the same thing as Camera2D set_zoom() setter
- apply_changes() # However I need to do something more, therefore calling another method after setting the zoom value
- # Method that need to be applied when the zoom changed
- func apply_changes():
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement