Function getGodotObject

Get the C++ Godot Object pointer of either a Godot Object OR a D native script.

GodotClass!T getGodotObject(T) (
  in T t
)
if (isGodotClass!T);

Useful for generic code.