Example #1
0
int MatWidget::LUART_SETFN(Material)(lua_State *L) {
	Ref w = GetRef<MatWidget>(L, "MatWidget", 1, true);

	D_Material::Ref m = lua::SharedPtr::Get<D_Material>(L, "D_Material", 2, true);
	if (m)
		w->BindMaterial(m->asset);

	return 0;
}