public static int CreateLuaObject(string path) { var id = ObjectBuilder.InstantiateUIElement(); var component = ObjectBuilder.Get((int)id.Number).AddComponent <LuaObjectComponent>(); component.Load(path); return((int)id.Number); }
public static DynValue Instantiate(string path) { return(ObjectBuilder.InstantiateUIElement(path)); }