MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / OnModelLoaded

Method OnModelLoaded

Source/Engine/Foliage/FoliageType.cpp:131–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void FoliageType::OnModelLoaded()
132{
133 PROFILE_MEM(LevelFoliage);
134
135 // Now it's ready
136 _isReady = 1;
137
138 // Prepare buffer (model may be modified so we should synchronize buffer with the actual asset)
139 Entries.SetupIfInvalid(Model);
140
141 // Inform foliage that instances may need to be updated (data caching, etc.)
142 Foliage->OnFoliageTypeModelLoaded(Index);
143}
144
145void FoliageType::Serialize(SerializeStream& stream, const void* otherObj)
146{

Callers

nothing calls this directly

Calls 2

SetupIfInvalidMethod · 0.80

Tested by

no test coverage detected