Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing Volume Mesh UV
#1
I change UV scale by this piece of code:

Code:
_buildVolumeMesh.MaterialSetttings[0].UVScale.y = _buildVolumeMesh.InVolume.GetData<CGVolume>().Length / 200

But it doesn't take place. What should I do ?
Right now it happens in runtime. What should I do if I want to happens in edit time ? Just by putting [ExecuteInEditMode] or I should do anything else ?

Edit: I think it is done by calling Refresh of BuildVolumeMesh module. Am I right ?

Edit 2: I try to have same texture size on all of my splines but I can't achieve it by changing Y UV, I assume 1 amount of Y UV for, for instance 200 length and then by dividing spline length by 200 and assigning to Y UV Scale, I can't achieve what I want.
The code:
Code:
_buildVolumeMesh.MaterialSetttings[0].UVScale.y = _buildVolumeMesh.InVolume.GetData<CGVolume>().Length / 200
What should I do ?

https://gyazo.com/306799228567b33b5c48039a319c4857
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: