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

Method FindAttributeOffset

Source/Engine/Particles/ParticlesData.cpp:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65int32 ParticleLayout::FindAttributeOffset(const StringView& name, int32 fallbackValue) const
66{
67 for (int32 i = 0; i < Attributes.Count(); i++)
68 {
69 if (name == Attributes[i].Name)
70 return Attributes[i].Offset;
71 }
72 return fallbackValue;
73}
74
75int32 ParticleLayout::FindAttributeOffset(const StringView& name, ParticleAttribute::ValueTypes valueType, int32 fallbackValue) const
76{

Callers 2

BindMethod · 0.80
BindMethod · 0.80

Calls 1

CountMethod · 0.45

Tested by

no test coverage detected