protected override void OnUpdate() { if (TextureBin.TryLoadTextureBin("TextureBin", out TextureBin textureBin)) { DeclareReferencedAsset(textureBin); } }
protected override void OnUpdate() { if (TextureBin.TryLoadTextureBin("TextureBin", out TextureBin textureBin)) { var binEntity = GetPrimaryEntity(textureBin); if (!DstEntityManager.HasComponent <TextureBin>(binEntity)) { DstEntityManager.AddComponentObject(binEntity, textureBin); } } }