Function ZagalaSpecTaggedDataExamplesDetailsHelpers::PasteExample#

Function Documentation#

UZagalaSpecTaggedDataCollection *ZagalaSpecTaggedDataExamplesDetailsHelpers::PasteExample(UZagalaSpecTaggedDataExamples &Examples, int32 ExampleIndex, const UZagalaSpecTaggedDataCollection &Source)#

Pastes a copy of a collection as an example, inside an undoable transaction.

The copy, and any tagged data it does not own yet, are owned by the examples asset so they are saved with it.

Parameters:
  • Examples – The examples asset.

  • ExampleIndex – Example to replace, or INDEX_NONE to add a new example at the end.

  • Source – The copied collection; it is left untouched.

Returns:

The pasted collection, or null when the index is out of range.