public void LoadBinding(Entity entity, IBindingContext context) { context.AddMissingUnityComponent <UnityEngine.CanvasRenderer>(entity); context.AddMissingUnityComponent <UnityEngine.UI.Image>(entity, image => { var mat = image.material = new UnityEngine.Material(UnityEngine.Shader.Find("Tiny/Sprite2D")); mat.renderQueue = 3000; }); }
public void LoadBinding(Entity entity, IBindingContext context) { context.AddMissingUnityComponent <UnityEngine.SpriteRenderer>(entity, r => { var mat = r.sharedMaterial = Sprite2DMaterial; mat.renderQueue = 3000; }); }
public void LoadBinding(Entity entity, IBindingContext context) { context.AddMissingUnityComponent <UnityEngine.Camera>(entity); }
public override void LoadBinding(Entity entity, IBindingContext context) { context.AddMissingUnityComponent <UnityEngine.Canvas>(entity); }
public void LoadBinding(Entity entity, IBindingContext context) { context.AddMissingUnityComponent <UnityEngine.RectTransform>(entity); }
public void LoadBinding(Entity entity, IBindingContext context) { context.AddMissingUnityComponent <Unity.Tiny.Sprite2DRendererHitBox2D>(entity); }
public void LoadBinding(Entity entity, IBindingContext context) { context.AddMissingUnityComponent <UnityEngine.Canvas>(entity); context.AddMissingUnityComponent <UnityEngine.UI.CanvasScaler>(entity); }
public void LoadBinding(Entity entity, IBindingContext context) { context.AddMissingUnityComponent <UnityEngine.Rendering.SortingGroup>(entity); }
public void LoadBinding(Entity entity, IBindingContext context) { context.AddMissingUnityComponent <Unity.Tiny.RectHitBox2D>(entity); }
public void LoadBinding(Entity entity, IBindingContext context) { context.AddMissingUnityComponent <MeshRenderer>(entity, renderer => { renderer.sharedMaterial = new Material(Shader.Find("GUI/Text Shader")); }); context.AddMissingUnityComponent <TText>(entity); }