Object Utils

Home   »   Object Utils

static func connect_silent(object:Object, signal_:String, target: Object, method: String, binds:Array=[], flags:int=0):
	if object.is_connected(signal_,target, method): return
	object.connect(signal_, target, method, binds, flags)

static func disconnect_silent(object:Object, signal_:String, target: Object, method: String):
	if !object.is_connected(signal_,target, method): return
	object.disconnect(signal_, target, method)

Leave a Reply

Your email address will not be published. Required fields are marked *