How to Make A Light Switch - VRChat Udon 2023

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ม.ค. 2025

ความคิดเห็น • 18

  • @Rabecca2001
    @Rabecca2001 5 หลายเดือนก่อน +1

    it was realy helpful, not can i just use it to toggle lights but also use the udonbehavior to toggle stuff off and on to make traps with :D

  • @celinaimusic
    @celinaimusic 11 หลายเดือนก่อน +1

    Thanks

  • @ArticS7ar
    @ArticS7ar ปีที่แล้ว +2

    how would i do this for mulitple lights at once

    • @myneighborswifi
      @myneighborswifi  7 หลายเดือนก่อน

      You can do this for multiple lights by having the script control an empty game object that all the lights are a child to. Just make all the lights you want to control children of the empty game object in the hierarchy.

  • @kaykaybotha4132
    @kaykaybotha4132 ปีที่แล้ว +1

    Hi that cool now I understand why you world in vr is so beautiful, but when will you be online ??? Cant wait for more videos

    • @myneighborswifi
      @myneighborswifi  ปีที่แล้ว +1

      Thanks for checking out the video! As for being online, it's strictly when my work schedule allows lol

    • @kaykaybotha4132
      @kaykaybotha4132 ปีที่แล้ว

      awww no problem ❤@@myneighborswifi

  • @akiraakiraakiraakira
    @akiraakiraakiraakira 7 หลายเดือนก่อน +1

    will this switch off the lights for everyone in the world-instance, or only for the person who interact with the switch

    • @myneighborswifi
      @myneighborswifi  7 หลายเดือนก่อน

      Only for the person who flips the switch

  • @alynefornever
    @alynefornever 6 หลายเดือนก่อน +1

    that's great but how to make it off by default for everyone?

    • @myneighborswifi
      @myneighborswifi  5 หลายเดือนก่อน

      To make the light(s) off by default, select the light(s) you want off in the hierarchy, go to the inspector for that/those light(s), and deselect the checkbox that is in the top left corner next to the game object name. Thanks for watching!

  • @SebZ5656
    @SebZ5656 4 หลายเดือนก่อน +1

    Hi, i did some lighted rooms with this tutorial, but whenever i turn on the lights, some load incorrectly, like if some of the lights that are together are messing up, if i turn off the lights that are close, the room lights correctly, how can i fix this?

    • @myneighborswifi
      @myneighborswifi  4 หลายเดือนก่อน +1

      You may have either too many real-time lights or have overlapping light ranges. First, check your light ranges and make sure the ranges aren't too large. If lights with overlapping ranges are too close, they can interfere with each other, causing some lights to be ignored or behave weird. After that, see if reducing the number of real-time lights fixes the issue. If there are too many lights in close proximity, it can cause some to be ignored.
      If that doesn't improve anything then I have no idea lol

    • @SebZ5656
      @SebZ5656 4 หลายเดือนก่อน

      @@myneighborswifi rreducing the number helped, but the thing that really helped was the render mode, thx for the help!

  • @CyberRedJim1986
    @CyberRedJim1986 ปีที่แล้ว +1

    So is this light switch function a local or global function for a world?

    • @myneighborswifi
      @myneighborswifi  ปีที่แล้ว

      The light switch function is definitely local lol
      If you want global functionality just add a "SendCustomNetworkEvent" node after the "Event Interact" node and then assign it to a "Custom Event" node that controls the rest of the script👍

  • @Skeletronus1993
    @Skeletronus1993 5 วันที่ผ่านมา +1

    Is there a way to make this from local to global?

    • @myneighborswifi
      @myneighborswifi  วันที่ผ่านมา

      Yep, connect the event interact node to a (Udon Behaviour) Send Custom Network Event node. Then, connect an (Event) Custom Event node to the rest of the script starting at the (Game Object) Set Active node. Name the custom event and then have the Send Custom Network Event node control the custom event.