Search Unity

AlienFX Lighting - FREE - Easy Integration Package

Discussion in 'Formats & External Tools' started by HakJak, Dec 18, 2018.

  1. HakJak

    HakJak

    Joined:
    Dec 2, 2014
    Posts:
    192
    Hey guys,

    I added AlienFX lighting to Guts and Glory a while back. I extended their SDK to make it easier to add AlienFX into Unity games and thought I'd share it with the community.

    You can download it here: https://drive.google.com/open?id=1Ep9EmW-xTqFn3orhivg9l8AbfpV2hgKc

    Now you can add AlienFX features with just 1 line of code!

    It's free and easy to use. Here's an example showing AlienFX linked to police lights in the game: https://steamcommunity.com/games/537340/announcements/detail/1690426356238224556

    Enjoy!

    - HakJak
     
    sean244 and Patroclo like this.
  2. Patroclo

    Patroclo

    Joined:
    Jan 14, 2016
    Posts:
    5
    Hi! I have a problem. Your Script work perfect in editor. But when i build it dont work. I notice that in function Start in the script "AlienFXManager". i am having a different.
    The line
    Code (CSharp):
    1. if (LFX_Result.LFX_Success != lightFXController.LFX_Initialize())
    return false in editor and true in build.
    Do you have any idea what may be happening?
    Thanks
     
  3. HakJak

    HakJak

    Joined:
    Dec 2, 2014
    Posts:
    192
    Try isolating the problem by starting a new Unity Project and testing the example scripts both in the editor and a build.

    If that works, then return to your game and try to move the AlienFX processes to after your loading scene, like the Main Menu. It may be possible that AlienFX is not initializing fast enough to return a Success value if you have other things going on in the same scene.