Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | DrewS |
How do I return a new instance of my class from within my class?
class Thing:
var stuff = null
func _init(s):
self.stuff = s
func do_something():
# .... do something
return Thing.new(result)