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

Method FindAttribute

Source/Engine/Particles/ParticlesData.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45int32 ParticleLayout::FindAttribute(const StringView& name) const
46{
47 for (int32 i = 0; i < Attributes.Count(); i++)
48 {
49 if (name == Attributes[i].Name)
50 return i;
51 }
52 return -1;
53}
54
55int32 ParticleLayout::FindAttribute(const StringView& name, ParticleAttribute::ValueTypes valueType) const
56{

Callers 6

InitializeNodeMethod · 0.80
ProcessGroupParticlesMethod · 0.80
ProcessGroupParticlesMethod · 0.80
GenerateMethod · 0.80

Calls 1

CountMethod · 0.45

Tested by

no test coverage detected