playMaker

Author Topic: How to set "Emission Color" in Unity 5 Standard Shader? [SOLVED]  (Read 10168 times)

indeed

  • Junior Playmaker
  • **
  • Posts: 85
Hi, I'm trying to make a glowing object pulse, so I'd like to access the emission color property of the Standard Shader. I can't seem to find it. I was trying to use "Named Color" in "Set Color Material" and making it "_EmissionColor" and "_Emission" but that didn't work...and when I drag in the component from the GameObject, it's not listed as a property to set.
« Last Edit: March 13, 2015, 07:21:11 PM by Alex Chouls »

indeed

  • Junior Playmaker
  • **
  • Posts: 85
Re: How to set "Emission Color" in Unity 5 Standard Shader?
« Reply #1 on: March 13, 2015, 05:20:30 PM »
Oops, my fault. I wasn't triggering the event correctly. Using "_EmissionColor" as the "named color" works.

indeed

  • Junior Playmaker
  • **
  • Posts: 85
Re: How to set "Emission Color" in Unity 5 Standard Shader? [SOLVED]
« Reply #2 on: March 17, 2015, 01:24:32 PM »
Hey, just a note for anyone else animating _EmissionColor, there is a strange bug (I think in Unity, not Playmaker) where the Unity Standard Shader sometimes does not see the emission is "activated". This is fixed by changing the emission color to anything above zero (full black) in the Inspector.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How to set "Emission Color" in Unity 5 Standard Shader? [SOLVED]
« Reply #3 on: March 17, 2015, 01:30:33 PM »
Thanks for sharing the solution.

It's good to report bugs like that to Unity directly, especially with new features like this =)
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D