x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Inputs and debug camera

Hi all,

by typing into engine console "ToggleDebugCamera" we can enable debug camera. How to add any inputs to it? For example, when debug camera is active I want to print string "Hello" from my blueprint every time when x is pressed. How to do it?

thanks in advance

Product Version: UE 4.8
Tags:
more ▼

asked Jul 12 '15 at 05:33 PM in Blueprint Scripting

avatar image

BujakD
212 14 23 31

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

4 answers: sort voted first

You can use the ExecuteConsoleCommand node and connect that with your desired input and print string.

-Alfie

more ▼

answered Oct 27 '16 at 07:13 PM

avatar image

AlfieLC
44 7 6 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hey Alfie,

this is some workaround, thanks. However it would still be nice to have possibility to bind input to debug camera.

cheers ;)

more ▼

answered Nov 15 '16 at 12:43 PM

avatar image

BujakD
212 14 23 31

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hmm i think i have slightly better solution. If You want to have custom input when debug camera is active, You can define it in LevelBlueprint. But be aware that some input will not be read (such as LMB click for example) because debug camera consumes it and it never reaches LevelBlueprint.

cheers

more ▼

answered Nov 15 '16 at 01:34 PM

avatar image

BujakD
212 14 23 31

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I've just discovered that the PlayerController has a CheatManager: https://docs.unrealengine.com/latest/INT/BlueprintAPI/CheatManager/index.html

It contains the class used for the debug camera. By assigning the PlayerController a custom CheatManager child class, and assigning it a custom DebugCameraController child class, I can bind inputs in my custom debug camera Event Graph.

So in your current situation, if you override the CheatManager and its Debug Camera class, you can add an Input X node inside this new camera's Event Graph.

more ▼

answered Apr 02 '17 at 10:09 AM

avatar image

Michael Dery
6 1 2 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question