UE4 Tutorial: Ingame Debug Camera (free camera)

  Рет қаралды 18,834

Marvel Master (Marvelmaster)

Marvel Master (Marvelmaster)

Күн бұрын

Пікірлер: 77
@BreakBackReality
@BreakBackReality 4 жыл бұрын
Thanks, man! I would like to add destroy actor on debug camera, when switch back on player character
@MarvelMaster
@MarvelMaster 4 жыл бұрын
yes thats a good addition^^^
@michaelkukula5926
@michaelkukula5926 Жыл бұрын
@BreakBackReality did you ever figure it out? I want to do this too.
@BreakBackReality
@BreakBackReality Жыл бұрын
​@@michaelkukula5926 If you just want to flying the debugging camera while the game is running in editor, you can just press F8 and use the engine's flying camera. If you really need to create a camera object during the game, do as shown in this video, but after posses back to character, it is better to delete this created actor through the Destroy Actor node
@michaelkukula5926
@michaelkukula5926 Жыл бұрын
@@BreakBackReality hehe I literally just found a solution. I want to do in game not in editor. I created a new spectator pawn and possessed that instead. Then in the event graph for the spectator pawn, I used get all actors of class to bp_firstpersoncharacter > get copy > possess > delay until next tick > destroy actor.
@BreakBackReality
@BreakBackReality Жыл бұрын
@@michaelkukula5926 nice, bro) thats good, but not sure that delay is needed. Just destroy after possess isn't work?
@Dejin1
@Dejin1 4 жыл бұрын
Your tutorials are always done with high quality and you make it very easy to understand great work sir as always! Thanks for the tutorial I will definitely use this!
@semmehh
@semmehh 9 ай бұрын
This should be a basic feature, like after pressing f8 you could press like f7 to regain control of you character while the camera is still dispossessed
@보리타작-x9s
@보리타작-x9s 2 жыл бұрын
THX SO MUCH! This is What've most looking for
@frankcastle2309
@frankcastle2309 2 жыл бұрын
clearly explained and simple, much appreciated :)
@ISKLEMMI
@ISKLEMMI Жыл бұрын
Thank you! This is exactly what I needed!
@TorQueMoD
@TorQueMoD 4 жыл бұрын
This is a great tutorial for a free camera, however, just an FYI, if you press F8 while in PIE (Play in Editor) you can actually detach from the pawn and you've got a free debug camera without the need for any code. That said, this tutorial is great for creating spectator cameras :)
@MarvelMaster
@MarvelMaster 4 жыл бұрын
Yes but F8 does not work with play in window 😬
@GamingwithPortals
@GamingwithPortals 2 жыл бұрын
@PRED4T0R yea, the pause command pauses all game code, so you cant really do it that way
@draicor
@draicor Жыл бұрын
@pred4t0r97 you need to look for the blueprint actor that you want to "keep moving" while the game logic is paused, and in the settings, there should be an option that says "tick when paused"
@bodamat
@bodamat 4 жыл бұрын
Implementation is simple, but it's hard to guess :) Thank you very much!
@NizioCole
@NizioCole 9 ай бұрын
Very simple, thank you!
@jerfi6592
@jerfi6592 2 ай бұрын
can we change camera FOV on debug camera?
@AdamHKatona
@AdamHKatona 2 жыл бұрын
Perfect. Thank You!
@bernardrouhi451
@bernardrouhi451 3 жыл бұрын
5:55 there is an Unpossessed event in UE, use `Set Life Span` to auto destroy your pawn
@Weckmuller
@Weckmuller 3 жыл бұрын
this helped me a lot! thanks!
@kenalpha3
@kenalpha3 2 жыл бұрын
Thanks bro. I read the comments about AI debug camera command. But it didnt work in 4.27 or idk. Anyways, this works to freeze my player mid animation, which is what I want. Very good to zoom in and get diff angles.
@mingyenwu9621
@mingyenwu9621 3 жыл бұрын
Thanks a lot man! :D
@facepalmedev
@facepalmedev 8 ай бұрын
Just be aware, doing this will spawn more debug cameras every time you press P. You can cache the debug camera and check if it already exists to get around it being spawned multiple times if it matters to you.
@markbevan5771
@markbevan5771 4 жыл бұрын
Thanks for the tip !
@epicdudepersonman99
@epicdudepersonman99 4 ай бұрын
hey, im trying to make this free camera into the game, not just debug, so how can i make line traces go into where i am looking at? currently they just go directly forward
@marcfornas1031
@marcfornas1031 4 жыл бұрын
Why not just press f8?
@MarvelMaster
@MarvelMaster 4 жыл бұрын
Haha this is actually why I made this video... to collect easier ways how other ppl do it
@Vanderer11
@Vanderer11 4 жыл бұрын
@@MarvelMaster When you press play in the editor, there we have pause, stop and eject buttons instead. How could you have missed it :D Anyway, your way is still good since it (should) work in packaged project and it can find some use.
@MarvelMaster
@MarvelMaster 4 жыл бұрын
F8 does nothing for me are you using addon?
@marcfornas1031
@marcfornas1031 4 жыл бұрын
@@MarvelMaster nop, just press f8 on a default editor ejects from player to move and see around without any addon docs.unrealengine.com/en-US/GettingStarted/HowTo/PIE/index.html Point 8. Is not too explainet but...
@MarvelMaster
@MarvelMaster 4 жыл бұрын
@@marcfornas1031 well these only works when you are using viewport not standalone window
@absentcassie
@absentcassie 3 жыл бұрын
my camera just teleports to the centre of the map and has no movement control
@MarvelMaster
@MarvelMaster 3 жыл бұрын
Is you have a english keyboard try press ";"
@vitgardon4896
@vitgardon4896 3 жыл бұрын
I think you can press ; (the key left of 1) and you can leave the actor with floating control. You can also freeze rendering with some key in this mode
@MarvelMaster
@MarvelMaster 3 жыл бұрын
Doesnt this only work in viewport mode?
@vitgardon4896
@vitgardon4896 3 жыл бұрын
@@MarvelMaster It should work everywhere except exported game I think but do not quote me on that :D
@MarvelMaster
@MarvelMaster 3 жыл бұрын
@@vitgardon4896 hm indeed it works...problem is my native language german does not have this button on keyboard so I have to find a workaround for that...
@vitgardon4896
@vitgardon4896 3 жыл бұрын
@@MarvelMaster That is a shame. I am from Czech republic and we have it :D I guess it can be change in editor config
@SaschaRobitzki
@SaschaRobitzki Ай бұрын
Something like that should be a built-in feature of the UE editor.
@marcusdev
@marcusdev 4 жыл бұрын
You could just press ' for AI debug, then tab to move freely. Or you can use the enable debug camera command from ue4.
@MarvelMaster
@MarvelMaster 4 жыл бұрын
Haha this is actually why I made this video... to collect easier ways how other ppl do it
@marcusdev
@marcusdev 4 жыл бұрын
@@LuckyPause3d Yessir
@marcusdev
@marcusdev 4 жыл бұрын
@@LuckyPause3d then TAB to get in freemode
@rastamami
@rastamami 2 жыл бұрын
This tutorial is amazing !! Thank you so much for showing this ! I have a question ... do you know how to move the character while free camera using the arrows or game pad buttons ?
@MarvelMaster
@MarvelMaster 2 жыл бұрын
Would need another setup because the character is not possessed during debug camera
@motianshi6364
@motianshi6364 3 жыл бұрын
nice tutorial. How can I change the moving speed. would be nice for a massive open world level.
@MarvelMaster
@MarvelMaster 2 жыл бұрын
Not at pc now. But I think you can cast to pawn movement or so and set its fly speed
@sjru4eu4u45urjdrjrj
@sjru4eu4u45urjdrjrj 3 жыл бұрын
Hi Marvel! Nice Turorial! My character is frozen when I jump from a height. how can i keep the time running for my character?
@MarvelMaster
@MarvelMaster 3 жыл бұрын
Hm I think its because he gets unpossesed? Somebody said there is another debug mode when pressing ";"
@realadnoh
@realadnoh 3 жыл бұрын
I would suggest using ToggleDebugCamera console command or enableGDT (in viewport play) which both has a lot of features and is not keyboard layout specific. also I would add the spawn default pawn and possess logic into the player controller, so you can save a reference to the original pawn first, spawn and posess the default pawn, and then be able to switch back to the old one. :-)
@MarvelMaster
@MarvelMaster 3 жыл бұрын
Turns out there are 10 different ways^^
@bernardrouhi451
@bernardrouhi451 3 жыл бұрын
umm... there is such a feature in UE! Press Shift + ' and then Tab to switch to Spectator mode LOL...
@xplorethings
@xplorethings Жыл бұрын
Thanks, that kinda works even when paused, although with visual glitches. Coming from Unity, it's hard to believe such essential feature isn't right there where you'd obviously expect it.
@danielacosta6084
@danielacosta6084 3 жыл бұрын
Is it possible to set the location of the camera manually? I tried setting its transform but instead the pawn got sent to 0, 0, 0, and had no movement controls. Until then I guess I'll try to work with it spawning off of the player.
@MarvelMaster
@MarvelMaster 3 жыл бұрын
hm usualy you can set camera location with the camera manager...maybe gve that a try
@danielacosta6084
@danielacosta6084 3 жыл бұрын
@@MarvelMaster oh never mind there was just some other problem with the code it works now.
@l_t_m_f
@l_t_m_f 2 жыл бұрын
Why does GetInstigator not give me the proper class in the c++ ? It gives me DebugPawn... Edit: Actually, you shouldn't use Instigator. It's not used for this. I went into the source. The comment left by Epic Games says the Insigator is the Pawn responsible for damage and other gameplay events caused by this actor. It cannot be used reliably. As you will discover, it does not work when spawning the Pawn from c++ source. I think it's safer/less cumbersome in the end to keep a reference to the original Character. It's less likely to interfere with Epic Games's systems.
@MarvelMaster
@MarvelMaster 2 жыл бұрын
jeah its purely blueprint based and since its only a debug thing and nothing for gameplay I think it does not need to be that reliable until some better solutions are found
@l_t_m_f
@l_t_m_f 2 жыл бұрын
@@MarvelMaster In the end, I was able to replicate the functionality by keeping the original object reference within the GameMode. Thanks for the inspiration.
@patrikfigo
@patrikfigo 3 жыл бұрын
UE4.26.2: "GetActorTransform" didn't spawn my DebugPawn in a moveable position. So, I used "GetWorldTransform" and as its target the root object of my player character! (If anyone else needs a workaround :)
@chopstigdev
@chopstigdev 3 жыл бұрын
or.. you press the f8 key to switch to simulation...
@MarvelMaster
@MarvelMaster 3 жыл бұрын
Only in viewport mode
@chopstigdev
@chopstigdev 3 жыл бұрын
@@MarvelMaster still its way faster for testing
@chopstigdev
@chopstigdev 3 жыл бұрын
@@MarvelMaster but i like the concept of the ingame debug camera 👍
@MarvelMaster
@MarvelMaster 3 жыл бұрын
@@chopstigdev actually there are multiple ways ";" also works on english keyboards
@chopstigdev
@chopstigdev 3 жыл бұрын
@@MarvelMaster true
@Abhishekchhetri6774
@Abhishekchhetri6774 3 жыл бұрын
Just press f8 to possess unpossessed
@MarvelMaster
@MarvelMaster 3 жыл бұрын
This works only in viewport mode
@_pastras
@_pastras 4 жыл бұрын
None of this works...
@MarvelMaster
@MarvelMaster 4 жыл бұрын
Why
@_pastras
@_pastras 4 жыл бұрын
@@MarvelMaster my input just won’t register. I can switch to the pawn but then there is nothing regarding movement. I setup the logic in the event graph and everything
@FoxoticTV
@FoxoticTV 2 жыл бұрын
Or you could just put a print string lmao - good tutorial tho
@MarvelMaster
@MarvelMaster 2 жыл бұрын
Sure print string helps lot of times but does not tell you if a door opened or closed in the right direction
@FoxoticTV
@FoxoticTV 2 жыл бұрын
@@MarvelMaster Direction as in up or down? I suppose that's how you implement it. you could always branch out different execs and just type in the string area which direction the functionality is supposed to be happening
Unreal Engine 4  - Groom Wind Tutorial - UE4.26 Hair and Wind
16:19
Marvel Master (Marvelmaster)
Рет қаралды 36 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,3 МЛН
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН
Hellblade 2 is getting TOO REAL in Unreal Engine 5 | New Metahuman Animator
18:20
Simple Global Wind in UE4 (One weird trick! Everyone hates him!)
19:01
I Remade Star Wars VFX in 1 Week
10:39
ErikDoesVFX
Рет қаралды 2,8 МЛН
Unreal Engine 4 Tutorial - Grenades
17:29
Ryan Laley
Рет қаралды 45 М.
This next-gen technology will change games forever...
16:43
Bluedrake42
Рет қаралды 340 М.
How to Create a Spectator Cam in Unreal Engine 5
7:13
Gorka Games
Рет қаралды 18 М.
5 Tricks you (probably) don't know about Unreal Engine 5
10:44
Cinecom.net
Рет қаралды 411 М.
This Is The Greatest Project Ever
11:46
Clydiie
Рет қаралды 346 М.
Epic's Unreal Optimization Disaster | Why Nanite Tanks Performance!
13:07
Threat Interactive
Рет қаралды 326 М.