07-19-2022, 11:17 AM
Hi
You can do that by assigning a new instance to the VolumeController.Volume property. Here is an example script:
I hope this helped
Have a nice day
You can do that by assigning a new instance to the VolumeController.Volume property. Here is an example script:
Code:
public class ExampleScript: MonoBehaviour
{
public VolumeController VolumeController;
public BuildShapeExtrusion ShapeExtrusion;
void Start()
{
VolumeController.Volume = new CGDataReference(ShapeExtrusion, "Volume");
}
}
I hope this helped
Have a nice day
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Available for freelance work—feel free to reach out.