Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixeye committed Jun 1, 2019
1 parent 29deda5 commit 69ac650
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Runtime/LibProcessors/ProcessorDebug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@ public void HandleSignal(in SignalDebug arg)
scaler.referenceResolution = new Vector2(12, 12);
canvas.worldCamera = Camera.main;
canvas.renderMode = RenderMode.ScreenSpaceCamera;
canvas.planeDistance = 60;
canvas.planeDistance = 30;
canvas.sortingOrder = 10;
canvas.transform.SetParent(Camera.main.transform);

rectTransform = go.GetComponent<RectTransform>();
}
rectTransform.gameObject.SetActive(true);

for (int i = 0; i < Entity.Count; i++)
{
var tr = Entity.transforms[i];
if (tr==null) continue;
var t = Obj.Spawn<TextMesh>(prefabEntityLabel, rectTransform.transform, tr.position, Quaternion.identity);
t.text = $"Entity ID: {Entity.cache[i].id}";
Vector2 screenP = RectTransformUtility.WorldToScreenPoint(null, tr.position + new Vector3(0, 0.6f, 0));
Expand Down

0 comments on commit 69ac650

Please sign in to comment.