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"

4.8P1: Execute Console Command only works every other time

Execute Console Command in Event Begin Play of Level Blueprint only works every other time when doing "play" in editor window: Selected Viewport and Simulate.

Create new blank project with 4.8 P1. Open Level Blueprint, add to Event Begin Play: Execute Console Command "stat fps"

Play. FPS are displayed. Stop. Play again. FPS are not there. Stop. Play third time: FPS are displayed again. This is consistent no matter how often you do this. Also tested with other projects.

Product Version: Not Selected
more ▼

asked May 06 '15 at 07:32 PM in Bug Reports

avatar image

337 22 28 39

avatar image ScottSpadea May 06 '15 at 08:15 PM

isn't stat FPS a toggle function that always behaved like that?

it would be nice if they added functions for HideFPS and ShowFPS, in addition to the toggle function.

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

1 answer: sort voted first

Hi btengelh,

This is expected behavior in PIE, as your console command is affecting the editor and not the game proper. You can see this by entering the command in the editor (use the ~ key and type stat fps) once, then again. It will turn on with the first command, and off with the second. Using this in your Level Blueprint does the same thing. You'll note that after turning it on in the game, it remains on in your Viewport after you stop playing. This will not happen in a packaged game, as that console command only affects that instance of the game.

more ▼

answered May 06 '15 at 09:33 PM

avatar image ScottSpadea May 06 '15 at 09:43 PM

is there a way to turn on fps without toggling it? so if you use the function more than once it stays on?

avatar image Ben Halliday STAFF May 06 '15 at 09:51 PM

No, but that's the way console commands work in the editor. Is there a reason you need to do this on Begin Play instead of turning it on in the editor before PIE?

avatar image Ben_Cykyria May 07 '15 at 09:22 AM

How embarrassing... I use this command after begin play in multiple projects for months and I could have sworn by all gods AND sold my first-born that this worked every time.

Thing is: it didn't.

(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