Navigation
API > API/Plugins > API/Plugins/MetasoundFrontend
| Name | FArrayIndexShuffler |
| Type | class |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Public/MetasoundArrayShuffleNode.h |
| Include Path | #include "MetasoundArrayShuffleNode.h" |
Syntax
class FArrayIndexShuffler
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| MetasoundArrayShuffleNode.h | |||
FArrayIndexShuffler
(
int32 InSeed, |
MetasoundArrayShuffleNode.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CurrentIndex | int32 | The current index into the array of indicies (wraps between 0 and ShuffleIndices.Num()) | MetasoundArrayShuffleNode.h | |
| PrevValue | int32 | The previously returned value. Used to avoid repeating the last value on shuffle. | MetasoundArrayShuffleNode.h | |
| RandomStream | FRandomStream | Random stream to use to randomize the shuffling. | MetasoundArrayShuffleNode.h | |
| ShuffleIndices | TArray< int32 > | Array of indices (in order 0 to Num), shuffled. | MetasoundArrayShuffleNode.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Init
(
int32 InSeed, |
MetasoundArrayShuffleNode.h | ||
bool NextValue
(
bool bAutoShuffle, |
Returns the next value in the array indices. Returns true if the array was re-shuffled automatically. | MetasoundArrayShuffleNode.h | |
void ResetSeed() |
MetasoundArrayShuffleNode.h | ||
void SetSeed
(
int32 InSeed |
MetasoundArrayShuffleNode.h | ||
void ShuffleArray() |
Shuffle the array with the given max indices. | MetasoundArrayShuffleNode.h |