Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - yan

Pages: [1]
Support / LWRP + Shader Graph support for TGS
« on: January 04, 2020, 04:13:43 PM »
Is there any chance to get LWRP + Shader Graph support for TGS?

Best Regards

how do I access the territory associated with a cell in 3D space in script? I tried doing:

cellCenter = tgs.CellGetPosition(cellIndex);
Vector3 cellCenterInLocalSpaceOfTerrain = terrain.transform.InverseTransformPoint(cellCenter);
Vector2 cellCenterV2 = new Vector2(cellCenterInLocalSpaceOfTerrain.x, cellCenterInLocalSpaceOfTerrain.z);
...but figured tgs.TerritoryGetAtPosition() is only meant for 2D maps, since it was returning empty (not null). Is there something similar for 3D space or another way to get the territory that is associated with a cell or vice versa?

Pages: [1]