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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to check if a certain console command is allready active?

If I want to 'Execute Console Command "stat unit" or "stat fps" , could I check if it is not allready active? With every test in preview mode, it toggle's on/off again.

I'm currently Executing the console command at begin play of my level blueprint. What should I change?

Product Version: UE 4.19
Tags:
more ▼

asked Apr 17 '18 at 12:26 PM in Using UE4

avatar image

VlecadGS
51 5 13 21

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

2 answers: sort voted first

Just keep a variable at hand that will retain if the command is active or not.

Begin -> If not active, Set Active Variable to true, Run Command

Stop -> If Active, Set Active Variable to false, Run stop command

more ▼

answered Apr 17 '18 at 01:56 PM

avatar image

MaxPainDigx
36 7 4

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

I assume you're doing this for testing purposes. If so you don't have to do it in the Level Blueprint. Just start your game in viewport and then open console with ~ key and enter desired console command (i.e. stat FPS). From now on the fps counter will appear in every 'play in the active viewport' session (until you restart the editor of course).

Or you can go to Edit -> Editor preferences -> General -> Performance and check the 'Show Frame Rate and Memory' checkbox. It'll show the performance stats in the upper right corner of the editor.

more ▼

answered Apr 17 '18 at 01:57 PM

avatar image

cropiduo
41 7 2

(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