How To Turn On And Off Lights | Single Light And A Room Of Lights - Unreal Engine Tutorial

  Рет қаралды 34,852

Matt Aspland

Matt Aspland

Күн бұрын

Пікірлер: 84
@EasysInsanity
@EasysInsanity 4 ай бұрын
I'm currently using UE v5.4.1 and this tut still works for anyone wondering or using a newer version. Thanks for the clean and clear video, it's much appreciated!
@ItsCooperTho
@ItsCooperTho 2 жыл бұрын
at 12:28 (get light index) it shows as "Actor Object Reference is not compatible with BP Light object Reference" and i cannot connect them
@Nillenice
@Nillenice Жыл бұрын
Yes! Do you know why?
@marciodasilva8797
@marciodasilva8797 Жыл бұрын
@@Nillenice Did you found out why? :D
@tonymurgia8614
@tonymurgia8614 Жыл бұрын
Thank you so much ! Really smart with the "lights index" and with this configuration it's easy too include some "material change" if we use a mesh for the lights (like a cylinder for exemple). Thank a lot !
@chuckymerchant236
@chuckymerchant236 2 ай бұрын
How would you go about changing the material? I'm using an emissive and it stays on even when the light is off. Any help woupd be greatly appreciated
@ThirstyThursten
@ThirstyThursten 2 жыл бұрын
@Matt Aspland, I believe this was one of my requests! :D Thanks for showing this!
@ECHSBACHS
@ECHSBACHS Жыл бұрын
Thanks !
@imspencer06
@imspencer06 2 жыл бұрын
Love your Tutorials man! Great quality videos like this deserve more clicks, and making my TPS Steam game wouldn't have been possible without you! I'll be sure to credit you so these incredible videos can get more views from new UE4 creators like me!
@adamjensen253
@adamjensen253 2 жыл бұрын
Amazing vid as always! I've been watching some of your videos and thanks to that i could make a lot of progress in my project.
@stig6339
@stig6339 2 жыл бұрын
just what i needed
@MattAspland
@MattAspland 2 жыл бұрын
Glad to hear!
@thevengeance9999
@thevengeance9999 2 жыл бұрын
nice video greetings from turkey
@MattAspland
@MattAspland 2 жыл бұрын
Thanks and welcome!
@uselesspsd
@uselesspsd Жыл бұрын
Problem. At the moment where I need to create a node (Target Light Index) "Get Light Index" I can’t create it. It’s just not in the list, I can’t and I don’t have it anywhere, I did everything according to the lesson. Possibly the problem is that I'm working in version 5.1. But then how can I write correctly so that the node appears. I'll be glad to help you guys
@marciodasilva8797
@marciodasilva8797 Жыл бұрын
Yeah got the same issue, did you end up finding the solution for this? Cheers!
@RMC_
@RMC_ 11 ай бұрын
@@marciodasilva8797 try dragging out from the lights array when creating the for each loop oh yeah also make sure there is a Light index variable in the LIGHTS bp, because that's the variable you should be using, not the one in the lightswitch bp. and also check that it's compiled
@marciodasilva8797
@marciodasilva8797 11 ай бұрын
@@RMC_ Thanks for the reply, i did exactly that, i was doing the "get all actors with interface" instead of "get all actors from class" and apparently you cant get variables off actors from interfaces that way in 5.3, which is pretty weird, it was possible on the 5.1 which i had previously, and yes those actors had the BPI on them aswell and the function was indeed getting them, i just couldnt extract the variables out for whatever reason haha
@iceman11a
@iceman11a 2 жыл бұрын
Matt, what about a power source. Like they can turn on without power of some kind. Make a cube that makes power. and then attach a line or something to the structure and if the structure detect the power. Then the lights will come on when you click the switch.
@MattAspland
@MattAspland 2 жыл бұрын
Great idea! I can add that onto my list!
@rhys8379
@rhys8379 Жыл бұрын
@MattAspland did this ever happen?! i cant see it and your tutorials are the only ones i can seem to understand haha
@alejandrorodriguez5254
@alejandrorodriguez5254 Жыл бұрын
Excellent, thank you so much!
@G4AGamingForAll
@G4AGamingForAll 2 жыл бұрын
Nice work dude 👍 Huge Likeeeeeeeeeeeeeee 👍😉
@MattAspland
@MattAspland 2 жыл бұрын
Much appreciated!
@vincentm7847
@vincentm7847 2 жыл бұрын
Hello Matt, thanks for all of your free and very helpful tutorials here on KZbin! I love the way you explain all these things straight to the point. Could you by any chance do an inventory tutorial like CS-GO and Dead by Daylight? I kinda know how to make RPG-style inventory but it won't I think fit in my game. Thanks for all of your helps!
@maxsworldofgames8729
@maxsworldofgames8729 2 жыл бұрын
Hi matt love your videos been using them for my gave for a while but can you do a tutorial where a player can shuffle in between small spaces like in the last of us and resident evil. thank you
@pseudonym108
@pseudonym108 8 ай бұрын
Hey so, the switches are sort of working okay but, I also have doors in my level and once open and then closed (and only from the opposite side they where opened from) I press my interact button (is interfaced) and all I get is my light-switch sound effect and the doors will no longer respond. If I don't leave the first room the switch with in it works perfectly well and the door opens but once I leave and ONLY if I close the door behind me...and never mind I figured it out as I was typing this nonsense. Collision boxes were overlapping each other. Hey thanks for yet another great tutorial!
@localfriendlycloud7720
@localfriendlycloud7720 2 жыл бұрын
Thanks my man
@MattAspland
@MattAspland 2 жыл бұрын
Happy to help!
@endricgollenbusch4106
@endricgollenbusch4106 2 жыл бұрын
Thank you for the perfect tutorial. That saved me loads of time. Can you make a video soon on how to combine the switch with a text massage? Tried it with excerpts from your door video, but that didn't work.
@henrylanchang2017
@henrylanchang2017 2 жыл бұрын
Amazing vid as always! I've been watching some of your videos and thanks to that i could make a lot of progress in my project. This turning On/Off lights made me think, can you make a video about hide/unhiding meshes with a button... maybe with toggle invisible? I saw ur videos about making a push button and the other one about spawning, but that's not quite what i need.
@budpeetie6879
@budpeetie6879 2 жыл бұрын
I actually did this with what i learned from this vid. I have a normal "off" light fitting when the light switch is off, and that turns invisible and a "On" light fitting appears in its place as well as a box light that switches on when switch is triggered.Off has a glass material and on has a neon luminous material.
@SilklessSound
@SilklessSound Жыл бұрын
Amazing thank you!!!
@r_e_d_squirrel367
@r_e_d_squirrel367 2 жыл бұрын
making my game EPIC!
@5qsgreatchannel
@5qsgreatchannel Жыл бұрын
Is there a way to check whether all lights are on/off? I want the player to only be able to open a door if all the lights are actually turned off
@zachchio413
@zachchio413 8 ай бұрын
how to add "material change" like when i press "E" not only the light shows up but including the emissive materials as well. Btw, great video! thank you so much
@zachchio413
@zachchio413 8 ай бұрын
If you encounter same problem as me what I did in 6:20 Event toggle lights > Flip Flop > set .. if you have better solution just comment. thank you
@CRV3N
@CRV3N 2 ай бұрын
I have a question. Is the Gate Node in the LightSwitchBP not redundant? Since the Enable/Disable inputs on collision already controls the player input. Still new to this
@3DChaddd
@3DChaddd Жыл бұрын
very tight code ty
@cavallorobin
@cavallorobin 2 жыл бұрын
Hello, is there any chance you would do a turret targeting and killing only AI? Would really help me. Like your vids. Pretty useful, keep it up
@MattAspland
@MattAspland 2 жыл бұрын
Cool idea, I can add it to my list :)
@shengalabu8050
@shengalabu8050 2 жыл бұрын
POGGGGG
@allarkvarkk8987
@allarkvarkk8987 Жыл бұрын
Thank you so much, but how do you make the actual light look bright? The light is looking but when I look up it isn't bright at all: Edit: I had my light in the ceiling a little...
@mustefa2193
@mustefa2193 Жыл бұрын
Thanks❤
@thatdudepeter
@thatdudepeter 2 жыл бұрын
Is there a way for a lightmap that has been built to change after you turn the light on or off
@MartKart8
@MartKart8 2 жыл бұрын
I like how when the videos are uploaded it happens around 18 hundred hours
@MattAspland
@MattAspland 2 жыл бұрын
Yep, I always upload at 18:00 GMT
@OiItsPhantom
@OiItsPhantom Жыл бұрын
What If I had multiple different Light BPs that I wanted effected by one single light switch? How do I add the other BPs in the Get All Actors Of Class?
@OiItsPhantom
@OiItsPhantom Жыл бұрын
I should clarify. I mean say i had a room that had point lights and spot lights. How would i go about that?
@CommanderColson
@CommanderColson 2 жыл бұрын
Great vid! Could you do a tutorial on shrinking animations? What I mean by this is, if I was to shrink my player character to 0.125 it's normal size, the animations become a bit choppy. Is there a way to then adjust the animations so that they run smooth with the new player characters size?
@MattAspland
@MattAspland 2 жыл бұрын
I haven't tried that before, but I can look into it
@kartoplia
@kartoplia 18 күн бұрын
That is awevose, thank you!
@Joel-bg3cf
@Joel-bg3cf 2 жыл бұрын
Mine won't turn on but they will turn off. I've tried every checkbox arrangement I can think of...
@robban-shinplays2612
@robban-shinplays2612 Жыл бұрын
very good tutorial, but it feels like im missing something. is it the same if i work in unreal 5.1 or have something changed? it feels like i followed everything 100% but still can get it to work😅 is there something thats easy to miss or has anything changed? (im very new to unreal an basically started last friday)
@Temperlarcrusader
@Temperlarcrusader 7 ай бұрын
im in 5 and i cant find -== integer
@imohsalah
@imohsalah 2 жыл бұрын
Nice
@paladin995893
@paladin995893 9 күн бұрын
Key works only if lights on i can turn off,but if lights are off cant turn on!!
@paladin995893
@paladin995893 9 күн бұрын
found it in light switch set node missed target connection :) thank you this tut was just what I needed.
@budpeetie6879
@budpeetie6879 2 жыл бұрын
Thanks for this vid. This works perfectly in my level when using the box collision and e key trigger. However i would like to use the "look at interactable object" blueprint interface you did on some of your other door videos and turning the lights on and off by looking at the lightswitch and interacting with it. And that simply won't work. It's driving me crazy. It must be something silly i'm doing wrong, because the interact interface i have does work perfectly with opening and closing doors, but wont work with the light fitting.
@corentinambroise4777
@corentinambroise4777 Жыл бұрын
i'm in the same position, did you found a way to make it work ?
@budpeetie6879
@budpeetie6879 Жыл бұрын
@@corentinambroise4777 i just removed the box collision. Used only the line detection method
@christophercover5212
@christophercover5212 8 ай бұрын
Anyone else having issues when duplicating light fixtures?
@Nillenice
@Nillenice Жыл бұрын
This doesnt seem to work in UE 5.1. Or am I just missing something?
@MattAspland
@MattAspland Жыл бұрын
The problem may be your input system, other than that it should all work the same. You can watch my video below on how to use the new enhanced input system. Hope it helps :) If this doesn’t fix it, feel free to send me a message on discord and I can help you further. kzbin.info/www/bejne/pImtpouLrbaZl5o
@tigasm6544
@tigasm6544 2 жыл бұрын
Last:(
@Testtt12312
@Testtt12312 2 жыл бұрын
make a minecraft video
@22hoursago
@22hoursago Жыл бұрын
just keep them in a single actor lol. why create index this and that. lol
@willkamechehe1496
@willkamechehe1496 9 ай бұрын
What?
@22hoursago
@22hoursago 9 ай бұрын
dont bullshit me @@willkamechehe1496
@69Mafias69
@69Mafias69 Жыл бұрын
Thanks Sir of KZbin :D
@kingdoom1906
@kingdoom1906 2 жыл бұрын
Hello matt can you make flip flop to anything because flip flop work only in (A) but (B) didn’t work in ue5 i hope you make video to explain that Thank you 😊
@kingdoom1906
@kingdoom1906 2 жыл бұрын
Hello again after a while i know what’s going on , i was using flip flop in function and function didn’t remember anything so i was need to do it in event graph so anyone was thinking like me and need to know what’s going on ,you need to do custom event and call that event in function hope that help you
@RMC_
@RMC_ 11 ай бұрын
At 9:30 you add a 'for each loop' to add all the lights into an array, but can you not just connect the Lights Array straight to the array output on the 'get all actors' node?
@Kwn18z
@Kwn18z Жыл бұрын
thk !!
@koolkat0002
@koolkat0002 2 жыл бұрын
Hi Matt! I've been watching a lot of your videos to learn blueprints, I really appreciate you explaining what each node means and how the graph works. Could you do a video on turning a radio on and off? I have a radio static mesh that I want to play one audio track from, I just want to be able to toggle it on and off. Thanks!
@ninithan9024
@ninithan9024 Жыл бұрын
Thank you! Your tutorials are great.
@TREEBXY
@TREEBXY Жыл бұрын
so i'm trying to do this for a flashlight that i have in my hand and i don't want to walk into a box to turn my flashlight on and off, can i glue the box to the character model so i'm always in it??
@willkamechehe1496
@willkamechehe1496 9 ай бұрын
What?
@TREEBXY
@TREEBXY 9 ай бұрын
​@@willkamechehe1496how does that not make sense
@willkamechehe1496
@willkamechehe1496 9 ай бұрын
@@TREEBXY if you want to turn on and off your flashlight, you can simply do it in your character BP using a flipflop. Why would you use a box collision?
@vichax
@vichax Жыл бұрын
@arttest0156
@arttest0156 9 ай бұрын
Are you using lumen? I have this problem when I turn off the light its fading out slowly instead of instant.
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 3,2 МЛН
How to turn ON & OFF Lights with a Blueprint in Unreal Engine 5
11:44
Lights and switches for your lights. Unreal Engine 5
12:41
Unreal By Yourself
Рет қаралды 4,7 М.
Why Solo Developers Should Use Unreal
9:51
Thomas Brush
Рет қаралды 384 М.
Realistic Light Switches! │ Unreal Engine 5 Tutorial
13:09
MrKnowBody
Рет қаралды 2,1 М.
UE5 - Turn on Light with Switch - Only if we're looking at it!
22:16
How To Light Interiors In Unreal Engine 4 & 5 (Tutorial)
9:21
Matt Aspland
Рет қаралды 34 М.