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
Photo Volume Spot placement tairoark 2 12 06-14-2022, 10:06 PM
Last Post: tairoark
  URP material upgrade tairoark 3 7 06-13-2022, 05:00 PM
Last Post: _Aka_
Question Add Component to created mesh? HarvesteR 1 8 05-25-2022, 07:21 PM
Last Post: _Aka_
  Adding a CP breaks the mesh lethekun 3 4 05-25-2022, 01:53 AM
Last Post: _Aka_

Forum Jump: