setParent method

  1. @override
Future setParent(
  1. ThermionEntity child,
  2. ThermionEntity parent
)
override

Sets the parent transform of child to parent.

Implementation

@override
Future setParent(ThermionEntity child, ThermionEntity parent) async {
  _module.ccall(
      "set_parent",
      "void",
      ["void*".toJS, "int".toJS, "int".toJS].toJS,
      [_sceneManager!, child.toJS, parent.toJS].toJS,
      null);
}