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"

Why do I have to click in order to be able to rotate my camera again after leaving inventory mode?

I have a blueprint where it will display an inventory when i click the I button. It disables keyboard and mouse movement and enables the cursor. If I click anywhere in this view and then click I again to turn off the inventory mode, in order to start being able to move the camera around again with my mouse i have to click first. How do I prevent this?

Product Version: Not Selected
Tags:
more ▼

asked Jul 11 '14 at 06:34 PM in Blueprint Scripting

avatar image

Zarrey
39 9 13 18

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

1 answer: sort voted first

Do you use PIE? Try running standalone or at least in separate viewport, this should fix it.

Quick edit: that has something to do with Slate and window focus, pretty much expected result in PIE, as far as i know.

more ▼

answered Jul 11 '14 at 06:46 PM

avatar image

BiggestSmile
1.6k 54 38 105

avatar image Zarrey Jul 11 '14 at 06:48 PM

when i click play i run from the hud blueprint window. it opens it in a full screen separate viewport. is this what you are talking about?

avatar image BiggestSmile Jul 11 '14 at 06:50 PM

Yeah, exactly. So that issue is present in the separate viewport as well?

Try calling this once your inventory is closed.

 FSlateApplication::Get().SetFocusToGameViewport();
avatar image Zarrey Jul 11 '14 at 06:57 PM

Everything I have done is in blueprints. I haven't touched any c++ code. Will I have to in order to fix this?

avatar image BiggestSmile Jul 11 '14 at 07:02 PM

Oh, sorry, just noticed the question is in Blueprints category, my bad.

I think Slate is not exposed to Blueprints, so i'm not aware of the solution to this problem available for Blueprints.

Try checking Content Examples demo HUD Example level, this might have a solution to this.

(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