setRenderComponent method

GameEntity setRenderComponent([
  1. dynamic renderComponent,
  2. Function? callback
])

Sets a renderable component of a 3D engine with a sync callback for this game entity.

Implementation

GameEntity setRenderComponent([ renderComponent, Function? callback ]) {
	this.renderComponent = renderComponent;
	renderComponentCallback = callback;

	return this;
}