Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MaterialId option not supported
#1
Hello, I am using Unity 2019.3.11 with HDRP 7.3. I am unable to use materialIds in the spline for shape extrusion. In the 'Input Spline Path' node for the cross I get a warning saying 'MaterialId option not supported!' Is using HRDP got anything to do with this? If not then what could I do to resolve this?


Attached Files Image(s)
   
Reply
#2
Hi,
I will take a look at this very soon. If I understand well you try to have varying materials along the extrusion's length?
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
I'm hoping to vary the materials along the cross spline. The nodes have differing materialIds in their 'Meta CG Options'.

I've just started using this asset today, so maybe I'm using it wrong. I'm using the material option on the Extrusion node. Only when I tick that I get the warning. This this what I need to do to achieve what I want?


Attached Files Image(s)
   
Reply
#4
Thanks to your code comments I realised I needed to use a 'Input Spline Shape' node instead of 'Input Spline Path'. However, I'm still not getting the material variations. I'll keep cracking at it.

I finally got it working after switching options on/off. When I finally toggled Materials on it seemed to work.
Reply
#5
You can see examples of usage of material variations in train scenes, like scene 12, where it is used on the rails. Check the "RailtrackShapeMain" object in that scene, and see how its Control Points have different material ids
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Forum Jump: