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

Method GetReferences

Source/Engine/Particles/ParticleSystem.cpp:177–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175#if USE_EDITOR
176
177void ParticleSystem::GetReferences(Array<Guid>& assets, Array<String>& files) const
178{
179 // Base
180 BinaryAsset::GetReferences(assets, files);
181
182 for (int32 i = 0; i < Emitters.Count(); i++)
183 assets.Add(Emitters[i].GetID());
184
185 for (auto i = EmittersParametersOverrides.Begin(); i.IsNotEnd(); ++i)
186 {
187 const auto id = (Guid)i->Value;
188 if (id.IsValid())
189 assets.Add(id);
190 }
191}
192
193bool ParticleSystem::Save(const StringView& path)
194{

Callers

nothing calls this directly

Calls 7

GetIDMethod · 0.80
GetReferencesFunction · 0.50
CountMethod · 0.45
AddMethod · 0.45
BeginMethod · 0.45
IsNotEndMethod · 0.45
IsValidMethod · 0.45

Tested by

no test coverage detected