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

Method GetReferences

Source/Engine/Visject/Graph.h:388–408  ·  view source on GitHub ↗

Gets the asset references. The output collection of the asset ids referenced by this object.

Source from the content-addressed store, hash-verified

386 /// </remarks>
387 /// <param name="assets">The output collection of the asset ids referenced by this object.</param>
388 virtual void GetReferences(Array<Guid>& assets) const
389 {
390 for (int32 i = 0; i < Parameters.Count(); i++)
391 {
392 const auto& p = Parameters[i];
393 const Guid id = (Guid)p.Value;
394 if (id.IsValid())
395 assets.Add(id);
396 }
397
398 for (int32 i = 0; i < Nodes.Count(); i++)
399 {
400 const auto& n = Nodes[i];
401 for (int32 j = 0; j < n.Values.Count(); j++)
402 {
403 const Guid id = (Guid)n.Values[j];
404 if (id.IsValid())
405 assets.Add(id);
406 }
407 }
408 }
409
410#endif
411

Callers

nothing calls this directly

Calls 3

CountMethod · 0.45
IsValidMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected