Search Unity

  1. Engage, network and learn at Unite Austin 2017, Oct 3 - 5. Get your ticket today!
    Dismiss Notice
  2. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  3. Check out all the fixes for 5.6 on the patch releases page.
    Dismiss Notice
  4. Unity 2017.1 is now released.
    Dismiss Notice
  5. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    Dismiss Notice
  6. Unity 2017.2 beta is now available for download.
    Dismiss Notice

Script not Launching after SetActive

Discussion in 'Scripting' started by JulienGn, Sep 13, 2017.

  1. JulienGn

    JulienGn

    Joined:
    Sep 13, 2017
    Posts:
    2
    Hello,

    so I'm rather new in Unity and struggle to complete a feature I'm trying to implement for a group project.
    Basically I have a script automatically launching a video into a RawImage object, but this RawImage needs to be deactivated untill the user SetActivate it throught another script I launch from a Button object.

    While I press the button, the RawImage seems to be activated and is visible, but the script doesn't automatically starts, and the video does not play.

    Am I missing out something here ? Have I to run a specific command to force the video script to launch ?

    Thanks.
     
  2. JulienGn

    JulienGn

    Joined:
    Sep 13, 2017
    Posts:
    2
    Edit : Welp, nevermind.
    That was because I didn't redirect correctly my method calls into Update().