playMaker

Author Topic: [SOLVED] Setting Blend amount in SkyboxBlend Material  (Read 3386 times)

jayhfd

  • Junior Playmaker
  • **
  • Posts: 71
[SOLVED] Setting Blend amount in SkyboxBlend Material
« 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
« Last Edit: May 18, 2012, 09:18:57 PM by jayhfd »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Setting Blend amount in SkyboxBlend Material
« Reply #1 on: May 18, 2012, 07:50:00 PM »

jayhfd

  • Junior Playmaker
  • **
  • Posts: 71
Re: Setting Blend amount in SkyboxBlend Material
« Reply #2 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?
« Last Edit: May 18, 2012, 08:16:11 PM by jayhfd »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Setting Blend amount in SkyboxBlend Material
« Reply #3 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...

jayhfd

  • Junior Playmaker
  • **
  • Posts: 71
Re: [SOLVED] Setting Blend amount in SkyboxBlend Material
« Reply #4 on: May 18, 2012, 09:19:26 PM »
Mmmm, that's some sweet skybox blendy goodness right thar! Thanks! :)

Fletch

  • Junior Playmaker
  • **
  • Posts: 66
    • SneakOnTheLot.com
Re: [SOLVED] Setting Blend amount in SkyboxBlend Material
« Reply #5 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?