i just found a way to invoke that function without modifying the engine, by using an observer ios class.