Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reference the materials used in generator
#4
The materials set in the Volume Mesh module are then assigned to the sharedMaterials property of the mesh's renderer.
This is done at the end of the CreateMesh.WriteVMeshToMesh method. The actual line is:
res.Renderer.sharedMaterials = vmesh.GetMaterials();
You can modify this line to better suit your needs.
I hope this helped.
Please consider leaving a review for Curvy Splines, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: Reference the materials used in generator - by _Aka_ - 05-08-2021, 07:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Generator gameobjects missing offset and rotated beewhale 1 26 6 hours ago
Last Post: _Aka_
  How to rotate generator asteroids patndan74 6 4,351 05-08-2025, 10:07 PM
Last Post: _Aka_
  Null Reference Exception rickgplus 1 1,660 03-01-2025, 02:09 PM
Last Post: _Aka_
  I have to refresh generator manualy :( GameDeveloperek4123 4 3,387 10-07-2024, 05:36 PM
Last Post: _Aka_

Forum Jump: