Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: NinjaX on November 10, 2018, 08:56:02 AM
-
Hello PLAYMAKER GODS (11011 11011) :)
It seems that the "get color" and "Set color" actions don't work with the new UNITY 2018 HDRP "lit Shader" and I was wondering if you guys have an action for it that would work ? I really need to access the color on the shader for my customization mode.
Thank you playmaker GODS I shall start to chant the official Playmaker God chant 11011 11011 in anticipation of your help. :D
-
BUMP
Any chance you can help me with this Jean ? It's cool if you can't but I at least need to know... Super thank you my man!
-
Hi,
Thanks for bumping, it's needed.
so, I think you just need to look into the shader to check the property names:
(https://i.imgur.com/NbzzcTd.png)
Else, can you share the material and shader or make a screenshot of what you have on your end?
Bye,
Jean
-
My editor freezes every-time I try to select the shader :|
-
... not cool.
what version of 2018 are you using?
Bye,
Jean
-
I sorta jumped on HD wagon really early and now I can't update my game, cause it has like a million moving parts... but I am on 2018.1.2f1
-
Hi,
yeah, always make sure you wait for at least few release cycles for using new features...
Bye,
Jean
-
OK Ty good advice, but does that mean you cant make an action for the color ?
-
Hi,
I am pretty sure the action works already, but you need to know the right name of the property, and if you can't access your shader, then you are in trouble...
so let me know when you can make that screenshot like I did, and once you did if you tried to access that property like it is referenced in the shader.
Bye,
Jean
-
Ahh I see, ty my man, I know your super busy, so Thank You for helping me. :)
-
Here you go JEAN (I downloaded Unity 2018.2 just for this)
I really need help with this, I try not to bother you unless I need too. TY again for your help.
-
From my experiments if you use the "Get Property" and select the Material you want to use and than go under: Color/ MaxColorComponent, you can than save that as a float variable.
But changing that variable at runtime does not change the color, even though changing the color (manually) shows the variable changing. I dunno...
-
OK sorry I figured it out:
_BaseColor Sorry it was right there sorry. TY for the help :)
-
Hi,
Cool :)
Bye,
Jean