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 modify UObjects from custom thread?

I have written a custom thread derived from FRunnable, and I want to modify and apply some variables such as GameUserSettings and ViewTarget from this thread. But when I run these code below, the editor triggered a breakpoint at the engine source code and the comments said: CVar Changes can only be initiated from the main thread.

 GEngine->GameUserSettings->ScalabilityQuality.EffectsQuality = atoi(split[6].c_str());

Is there any way to do it or can I delegate these task to GameThread?

Thanks a lot!

update: I found a class "FEvent" which seems to be useful about this problem,but I don't know how to use it...

Product Version: Not Selected
more ▼

asked May 08 '16 at 07:32 AM in C++ Programming

avatar image

8 2 5 6

avatar image Univise May 08 '16 at 10:10 AM

I believe break points should only be triggered in debug and development configuration so I would try the shipping configuration; just for experimenting though, you should see the documentation more but for trying and experimenting I would try that. It would be weird if your shipped game suddenly triggered a break point; I believe though the alternate response of the engine is to simply crash but try it out.

avatar image YunjinZhang May 08 '16 at 10:44 AM

I'll try it later... It takes a long time to rebuild the project in shipping mode... update: I think I cannot use shipping mode because this thread is in an editor plugin...

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

0 answers: sort voted first
Be the first one to answer this question
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