Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing Volume Mesh UV
#3
(02-20-2020, 01:25 AM)_Aka_ Wrote: Hi,

about that line of code, it depends on what other code executes before that. You are using _buildVolumeMesh.InVolume.GetData<CGVolume>().Length, so make sure the generator is initialized and up to date before using that data (see Initialize and Refresh methods in the CurvyGenerator class)

Make sure Length returns the right value by using Debug.Log. Compute the value manually and set it in the generator manually to see if the desired result is there. If so, see if the automatically computed value is the same than the manually computed one. By following those steps you should be able to find what went wrong

Yes, [ExecuteInEditMode] is to make that code execute in edit mode

I check them all. The length is correct. Just not sure if I do the right job or not!
How to change UV to have same result in all of the splines ?

Edit: The problem was because of Keep Aspect. I don't know how it works but I disabled it and calculated UV Scale of Y.
Reply


Messages In This Thread
Changing Volume Mesh UV - by ATHellboy - 02-19-2020, 10:42 AM
RE: Changing Volume Mesh UV - by _Aka_ - 02-20-2020, 01:25 AM
RE: Changing Volume Mesh UV - by ATHellboy - 02-20-2020, 05:43 AM
RE: Changing Volume Mesh UV - by ATHellboy - 03-02-2020, 08:05 AM
RE: Changing Volume Mesh UV - by _Aka_ - 03-08-2020, 01:55 PM
RE: Changing Volume Mesh UV - by ATHellboy - 03-08-2020, 02:19 PM
RE: Changing Volume Mesh UV - by ATHellboy - 03-10-2020, 01:34 PM
RE: Changing Volume Mesh UV - by _Aka_ - 03-10-2020, 10:37 PM
RE: Changing Volume Mesh UV - by ATHellboy - 03-11-2020, 05:46 AM
RE: Changing Volume Mesh UV - by _Aka_ - 03-13-2020, 11:23 PM
RE: Changing Volume Mesh UV - by ATHellboy - 03-14-2020, 08:17 AM
RE: Changing Volume Mesh UV - by _Aka_ - 03-14-2020, 01:55 PM
RE: Changing Volume Mesh UV - by ATHellboy - 03-14-2020, 05:04 PM
RE: Changing Volume Mesh UV - by ATHellboy - 03-17-2020, 10:51 AM
RE: Changing Volume Mesh UV - by _Aka_ - 03-18-2020, 11:36 PM
RE: Changing Volume Mesh UV - by ATHellboy - 03-19-2020, 05:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Adjust radius of generated mesh via script? Shackman 1 3 03-26-2024, 01:12 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
Question Volume Spots inter group distance Sacryn 1 3 02-27-2024, 04:08 PM
Last Post: _Aka_
  Not seeing mesh extended after following YT PaulM 1 3 02-02-2024, 12:01 PM
Last Post: _Aka_

Forum Jump: