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"

Async Loading UPROPERTY TAssetPtr<>

I've got a derived version of USoundNode, with an UPROPERTY

 UPROPERTY(EditAnywhere, Category=WavePlayer, meta=(DisplayName="REV Model Asset"))
 TAssetPtr<UREVModelAsset> REVModelAssetPtr;

I'm trying to Async load the asset as soon as possible. However I can't find a callback into my UObject/USoundObject such that

a) The UProperty is valid and has been 'injected'

b) Async Loading is allowed: I've been bumping into an assert that doesn't allow me to load.

 [2017.10.20-04.24.53:140][  0]LogUObjectGlobals: Warning: Calling StaticLoadObject during PostLoad may result in hitches during streaming.
 Assertion failed: RecursionNotAllowed.Increment() == 1 [File:D:\Build\++UE4+Release-4.17+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\Serialization\AsyncLoading.cpp] [Line: 4244] 

I've tried

 virtual void PostLoad() override; //Asserts
 virtual void PostInitProperties();//UProperties are not setup yet.

Does anyone have a magic callback such that its actually time to perform my AsyncLoad operations?

Product Version: UE 4.17
more ▼

asked Oct 20 '17 at 01:13 PM in C++ Programming

avatar image

6 2 2

avatar image krisgoku2 Oct 20 '17 at 01:59 PM

hitches? what's that like lag?

avatar image CrankcaseAudio Oct 21 '17 at 11:02 PM

more like the UI freezes because of a blocking load. But even if I make it load Async, it still A) Asserts B) Prints that warning.

When the hell is it an alright time to load my data? I've overridden EVERY callback in UObject and non of them work.

(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