Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jayhfd on May 18, 2012, 07:46:09 PM

Title: [SOLVED] Setting Blend amount in SkyboxBlend Material
Post by: jayhfd on May 18, 2012, 07:46:09 PM
Hi,
I'm trying out the skybox blend material here: http://unifycommunity.com/wiki/index.php?title=SkyboxBlended

I'd like to know how I could control the blend amount from within Playmaker? I looked at getting/setting properties but never saw the Blend float variable. Honestly I'm not 100% sure how these work, but I can generally figure it out by dragging materials/shaders/objects and looking at the drop down! However not this time.

Regards,
Jay
Title: Re: Setting Blend amount in SkyboxBlend Material
Post by: Alex Chouls on May 18, 2012, 07:50:00 PM
Try Set Material Float:
https://hutonggames.fogbugz.com/default.asp?W406
Title: Re: Setting Blend amount in SkyboxBlend Material
Post by: jayhfd on May 18, 2012, 08:07:24 PM
I assumed this didn't work, as the skybox material is set in Rendersettings/not attached to a game object, hence I can't drag a game object in. I tried just dragging a material on to the game object field but of course that didn't work :)

*edit
Also tried making a game object with a skybox component, but then I seem to require a mesh renderer component too, so I don't think the sky box will be used, but the material attached to the mesh renderer instead?
Title: Re: Setting Blend amount in SkyboxBlend Material
Post by: Alex Chouls on May 18, 2012, 08:45:58 PM
Ahhh, good point... I added a material slot to Set Material Float. Let me know if this works...
Title: Re: [SOLVED] Setting Blend amount in SkyboxBlend Material
Post by: jayhfd on May 18, 2012, 09:19:26 PM
Mmmm, that's some sweet skybox blendy goodness right thar! Thanks! :)
Title: Re: [SOLVED] Setting Blend amount in SkyboxBlend Material
Post by: Fletch on July 16, 2013, 03:22:45 PM
Did this technique work?  I've been messing around with it for an hour and don't understand. 

Do I need a skybox component on the game object? 

Could someone explain this a little further?