Exemple #1
0
 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;
     });
 }
Exemple #3
0
 public void LoadBinding(Entity entity, IBindingContext context)
 {
     context.AddMissingUnityComponent <UnityEngine.Camera>(entity);
 }
Exemple #4
0
 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);
 }
Exemple #6
0
 public void LoadBinding(Entity entity, IBindingContext context)
 {
     context.AddMissingUnityComponent <Unity.Tiny.Sprite2DRendererHitBox2D>(entity);
 }
Exemple #7
0
 public void LoadBinding(Entity entity, IBindingContext context)
 {
     context.AddMissingUnityComponent <UnityEngine.Canvas>(entity);
     context.AddMissingUnityComponent <UnityEngine.UI.CanvasScaler>(entity);
 }
Exemple #8
0
 public void LoadBinding(Entity entity, IBindingContext context)
 {
     context.AddMissingUnityComponent <UnityEngine.Rendering.SortingGroup>(entity);
 }
Exemple #9
0
 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);
 }