Unity 5 - How to Play Videos on Trigger

Поделиться
HTML-код
  • Опубликовано: 19 дек 2024

Комментарии • 73

  • @keithkatane4854
    @keithkatane4854 3 года назад +2

    Lol. On top of the tutorial itself I really like your register and how you address the audience. Chilled. Sounds like you're about to go into "And if it's a problem, you know where I live."

  • @annora1342
    @annora1342 6 лет назад +5

    Hey, i'm a newer game dev and just wanted to say that this helped. I'm trying to make a parkour game and wanted to add in a video to help players.

  • @alhut
    @alhut 3 года назад

    thanks for sharing , happy new year

  • @Marandal
    @Marandal 2 года назад

    This is Exactly what i was looking for! Also a good learning
    experience for me; still have alot to learn.
    Going to use it as a main feature for a Telltale-esque game.
    Thank you!

    • @2kmixedit
      @2kmixedit  2 года назад +1

      Hey man, glad this worked for you! I love the Telltale games and what they brought to the industry. If you pursue your project let us know how it's looking, cheers!

  • @harisperiorellis6786
    @harisperiorellis6786 3 года назад +1

    Can I use it for a 2d Game? I tried everything you said using an object with a collider 2d but it didn't work.

  • @niyijohn6877
    @niyijohn6877 2 года назад

    Love your work. Big ups man

    • @2kmixedit
      @2kmixedit  2 года назад

      Thanks man, means a lot to hear this!

  • @zimou5849
    @zimou5849 5 лет назад +3

    thank you so much
    cine machine is so damn hard and for a 2d game simply animating a scene is much easier

  • @HunterTheWalrus
    @HunterTheWalrus 7 лет назад +1

    Nice vid man! I'd love to see what you are doing on your own. Like what game you are working on and stuff like that.

    • @2kmixedit
      @2kmixedit  7 лет назад +2

      Nothing much, I'm more of a tutor than a indie game dev.

    • @bora6436
      @bora6436 4 года назад

      @@2kmixedit Hello is it work for free version of unity?

  • @anettebratvold8476
    @anettebratvold8476 3 года назад

    How do you make the backgroundmusic stop playing while the video is playing?

  • @3d_nahla289
    @3d_nahla289 3 года назад

    I have question // my video play in unity but when I export my game on WEBGL the video doesn't play on the web ?? I use ( UNITY 2020.1.3F1) help me please

  • @pradeepKumar-jf2be
    @pradeepKumar-jf2be 6 лет назад +4

    It's not working .I've done everything you did but video is not playing

    • @MrJos117
      @MrJos117 4 года назад +2

      In the cube that he uses as a trigger you must make sure the "Is Trigger" check box in Box Collider is ticked..... Probably a bit late

    • @mikethegamedev
      @mikethegamedev 4 года назад +1

      tick the "Is trigger" inside the cube then

  • @PetrosKizas
    @PetrosKizas 2 года назад

    Hi. thanks for the video. I am using Wwise for Sfx and when i am triggering a video i have no sound. Any ideas how to fix that issue? thanx

  • @bigfootgames
    @bigfootgames 2 года назад

    Great Tutorial !!! Thanks!!!

  • @MyNameIssaSimon
    @MyNameIssaSimon 6 лет назад +1

    The 3rd person tutorial project download link is broken. Could you please fix it. Thanks.

    • @2kmixedit
      @2kmixedit  6 лет назад

      Check the videos about those tutorials not this one.

    • @MyNameIssaSimon
      @MyNameIssaSimon 6 лет назад

      Lurony The link on those tuts are broken

  • @Testtestnotest
    @Testtestnotest 2 года назад

    nice! thank you 👍

  • @mirthfulgeek
    @mirthfulgeek 5 лет назад

    hi! i'm one year late but do you happen to work with the Leap Motion Controller? i've been trying to use this video script to get a ball thrown to hit the "invisible box" and activate the trigger instead of the first person walking towards the "invisible box". i tried tagging the ball "Player" but it doesn't seem to work.. does the tagging only work for FPSController?

  • @junaidanwar8976
    @junaidanwar8976 3 года назад

    where do i make the script? like where in the project folder?

  • @Dancoliio
    @Dancoliio 3 года назад +2

    For those who need to do it on 2D games ->
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class PlayVideo : MonoBehaviour
    {
    public GameObject videoPlayer;
    public int timetoStop;
    void Start()
    {
    videoPlayer.SetActive(false);
    }
    public void OnTriggerEnter2D (Collider2D player)
    {
    if (player.gameObject.tag == "Player")
    {
    videoPlayer.SetActive(true);
    Destroy(videoPlayer, timetoStop);
    }
    }
    }
    ... youre welcome

  • @DnG9966
    @DnG9966 6 лет назад

    Would this logic apply to a virtual reality game or would the main camera move around and look away from the video if the player looks away?

  • @erikaroldan6899
    @erikaroldan6899 3 года назад

    Hey Lurony thanks for the video, I was able to run this in Unity and the video is showing but the problem is when I export to WebGl then the video is not there. I am guessing the same problem shows up if I try to build the game for PlayStation4. Could you help me with this, please.

  • @ACJOKERZ
    @ACJOKERZ 3 года назад +3

    You are amazing. Thanks for saving my courseworks hopes

  • @zeeshansiddiqui5869
    @zeeshansiddiqui5869 5 лет назад

    can you explain it by using url
    how can we achive this by using url option.
    thanks

  • @feferonkaanimation4870
    @feferonkaanimation4870 5 лет назад +2

    good cut scene :)

  • @a0921961106
    @a0921961106 5 лет назад +1

    This trigger cannot be triggered again once. How can I let the trigger be repeated~

    • @omiorahman6283
      @omiorahman6283 4 года назад

      Look at box collider tick ☑ istrigger
      See if it works
      I tried doing that in Jimmy Vegas car unity video and it worked there

  • @ScorpioAU
    @ScorpioAU 4 года назад

    To make a revolutionizing game all u need is to use this bois Assests

  • @iHighPointz
    @iHighPointz 3 года назад

    Thank u so much man

  • @KingDoogan
    @KingDoogan 7 лет назад +1

    This coming to next gen console?

  • @Javawok
    @Javawok 5 лет назад +2

    I wish I could understand a single word you said during the scripting part.. Gosh ill never learn coding 😩

    • @kineticstishi
      @kineticstishi 5 лет назад

      How's your coding going on

    • @ScorpioAU
      @ScorpioAU 4 года назад

      Check His Assests I'n description

    • @Fenixmaiden666
      @Fenixmaiden666 4 года назад

      Learn C# buddy. Hope the poster doesn't mind this but check out someone called "TheNewBoston", he does it in lamens terms and breaks down the logical concepts. I was put off learning code for years, but it was the best decision I ever made going back to it and dedicating time to getting better. The Unity tutorials are also brilliant (at the moment Unity Learn Premium is free).

    • @mikethegamedev
      @mikethegamedev 4 года назад

      ...

  • @lusilusi8694
    @lusilusi8694 6 лет назад

    I LOVE YOU SO FUCKING MUCH! You saved me, because I have to have a beta out by tomorrow! (School project)

  • @omiorahman6283
    @omiorahman6283 4 года назад +1

    Make one about playing cg pictures in 3dgame like Rance ys or death note
    Also see if you can use cinemachine.
    I will try to see if I can come with cg pictures in 3d games.
    Working with cinemachine is different the cameras work differently 😏
    You have something on save load system?
    Also beyond birthday best L

  • @KenScepter
    @KenScepter 3 года назад

    bro its not working

  • @jheklosgomes9287
    @jheklosgomes9287 6 лет назад

    very good

  • @buntwogarde6583
    @buntwogarde6583 4 года назад

    yes

  • @kendinemuhendis5070
    @kendinemuhendis5070 4 года назад

    using System;
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.Video;
    public class NewBehaviourScript : MonoBehaviour
    {
    public GameObject videoPlayer;
    public int stopie;
    void start()
    {
    videoPlayer.SetActive(false);

    }
    private void OnTriggerEnter(Collider player)
    {
    if (player.gameObject.tag == "Player")
    {
    videoPlayer.SetActive(true);
    Destroy(videoPlayer,stopie);
    }
    }
    }
    my video started otomatically please help me

    • @mikethegamedev
      @mikethegamedev 4 года назад

      please stop putting the script in the comment, this makes those new people lazy to code and make them never can learn any coding skill

    • @kendinemuhendis5070
      @kendinemuhendis5070 4 года назад

      @@mikethegamedev yeah but its a problematic script......

    • @omiorahman6283
      @omiorahman6283 4 года назад

      You probably placed your trigger on the 000 position or maybe near the player
      Also is the trigger has box collider or is it 3d solid object with gravity
      Whats the scale and position of the trigger sister?
      Is trigger box needs to be ticked I think in box collider the code is fine.

    • @omiorahman6283
      @omiorahman6283 4 года назад

      Try to play with the box collider is trigger of the trigger
      Heres for the explanation m0fjrQkaES4 here

  • @ItsMe-yx1zi
    @ItsMe-yx1zi 5 лет назад

    Only if I could understand one word. I've never finished even one project. I don't understand scripting.

  • @koniipinka7923
    @koniipinka7923 3 года назад

    nah not working anymore

  • @kurekureci
    @kurekureci 7 лет назад

    From *ALL* the videos you could pick...
    ...and you picked this one.

    • @wazza8614
      @wazza8614 7 лет назад +2

      Lurony he means Gucci gang :P

    • @kurekureci
      @kurekureci 7 лет назад

      No, not that Lurony :D the feature is amazing and i plan using this tutorial :D

    • @2kmixedit
      @2kmixedit  7 лет назад +1

      Oh lol I totally forgot ahahahha

  • @yantizeng6557
    @yantizeng6557 5 лет назад

    I saw Naruto and his friends out there in the ramen store hhhh

  • @MrCamdere
    @MrCamdere 2 года назад

    BRO HOW CAN I PLAY VIDEOS BETWEEN LEVELS ? FROM LEVEL 1 TO 2 AND SO ON ? GUCCI GANG GUCCI GANG GUCCI GANG GUCCI GANG GUCCI GANG LOVE THIS STUPID SONG :)))))

  • @regioninteractive6114
    @regioninteractive6114 4 года назад

    Gucci gang