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

Method AddUnique

Source/Engine/Core/Collections/Array.h:501–505  ·  view source on GitHub ↗

Adds the unique item to the collection if it doesn't exist. The item to add.

Source from the content-addressed store, hash-verified

499 /// </summary>
500 /// <param name="item">The item to add.</param>
501 FORCE_INLINE void AddUnique(const T& item)
502 {
503 if (!Contains(item))
504 Add(item);
505 }
506
507 /// <summary>
508 /// Adds the given amount of items to the collection.

Callers 13

AddCustomActorMethod · 0.80
AddCustomPostFxMethod · 0.80
AddGlobalCustomPostFxMethod · 0.80
InvalidateMethod · 0.80
GetLocalesMethod · 0.80
GetExtensionsMethod · 0.80
OnStaticFlagsChangedMethod · 0.80
AddTagMethod · 0.80
AddTagRecursiveMethod · 0.80

Calls 2

ContainsFunction · 0.70
AddFunction · 0.70

Tested by

no test coverage detected