Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Volume Mesh material
#1
How at runtime (via API) do you set the material on a BuildVolumeMesh module?

There is a MaterialId but is says it is Obsolete. Not sure what the 'id' is either?

I have a Material that I've loaded and a BuildVolumeMesh that I've accessed.


Attached Files Thumbnail(s)
   
Reply
#2
Hi
Please use the BuildVolumeMesh.AddMaterial and BuildVolumeMesh.SetMaterial methods to add and modify materials to the Build Volume Mesh module. Each material is associated with an instance of CGMaterialSettingsEx, which contains the settings displayed on your screenshot. Please ignore the MaterialId field, as it is obsolete, useless, and will be removed in version 9.0
I hope this helped
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
Thanks... I was looking at the API for the wrong CG module.

I had looked at a lot of past Forum post about materials. Several other people mentioned wanting to change materials based upon Metadata on CPs.
Please add this to version 9.0!

;-)
Reply
#4
(06-14-2022, 09:28 PM)tairoark Wrote: Thanks... I was looking at the API for the wrong CG module.

I had looked at a lot of past Forum post about materials. Several other people mentioned wanting to change materials based upon Metadata on CPs.
Please add this to version 9.0!

;-)

Will try to
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 4 6 21 minutes ago
Last Post: Thinkurvy
  Set Volume to the Volume Controller at Runtime pako88 2 10 04-08-2024, 03:26 PM
Last Post: _Aka_
  Adjust radius of generated mesh via script? Shackman 1 4 03-26-2024, 01:12 PM
Last Post: _Aka_
Question Volume Spots inter group distance Sacryn 1 3 02-27-2024, 04:08 PM
Last Post: _Aka_

Forum Jump: