A class in Root.Township, the global namespace.
Editor tool that places empty child objects on mesh surfaces at given texture coordinates.
Constructors
| Member | What it is |
|---|
GenerateUVPoints() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
5 private and internal fields
| Member | What it is |
|---|
private bool isGenerating | Inspector button that runs Generate. |
private bool isYFlipped | Flips the V coordinate. |
private MeshFilter[] meshFilters | Meshes to place points on. |
private Vector2 textureSize | Texture size in pixels; UV points are divided by it. |
private Vector2[] uvPoints | Points in texture pixels. |
Methods
1 private and internal method
| Member | What it is |
|---|
private void Generate() | For each UV point, finds the triangles that contain it on each mesh and creates a child object at that spot. |