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

Method Get

Source/Engine/Content/SoftAssetReference.h:199–204  ·  view source on GitHub ↗

Gets the asset (or null if unassigned).

Source from the content-addressed store, hash-verified

197 /// Gets the asset (or null if unassigned).
198 /// </summary>
199 T* Get() const
200 {
201 if (!_asset)
202 const_cast<SoftAssetReference*>(this)->OnResolve(T::TypeInitializer);
203 return (T*)_asset;
204 }
205
206 /// <summary>
207 /// Gets managed instance object (or null if no asset linked).

Callers

nothing calls this directly

Calls 1

OnResolveMethod · 0.80

Tested by

no test coverage detected