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

Function OnSet

Source/Engine/Scripting/SoftObjectReference.h:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 void OnSet(const Guid& id)
75 {
76 if (_id == id)
77 return;
78 if (_object)
79 _object->Deleted.Unbind<SoftObjectReferenceBase, &SoftObjectReferenceBase::OnDeleted>(this);
80 _object = nullptr;
81 _id = id;
82 Changed();
83 }
84
85 void OnResolve(MClass* type)
86 {

Callers 15

GPUResourcePropertyMethod · 0.85
GPUResourcePropertyClass · 0.85
SetMethod · 0.85
UnlinkMethod · 0.85
SoftAssetReferenceMethod · 0.85
SoftAssetReferenceClass · 0.85
SetMethod · 0.85
AssetReferenceMethod · 0.85
AssetReferenceClass · 0.85
SetMethod · 0.85
JsonAssetReferenceMethod · 0.85
JsonAssetReferenceClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected