unreal.PCGCountUniqueAttributeValuesKernel

class unreal.PCGCountUniqueAttributeValuesKernel(outer: Object | None = None, name: Name | str = 'None')

Bases: PCGComputeKernel

Counts how many unique values of a string key attribute are present in an input data collection. Output attribute set is a table of unique string key values and corresponding counts. Can output an attribute set per input data, or a single attribute set that counts across all data.

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGCountUniqueAttributeValuesKernel.h

Editor Properties: (see get_editor_property/set_editor_property)

  • kernel_flags (int32): [Read-Only] Specifying certain memory access flags allows for optimizations such as kernel fusing.

  • kernel_source (ComputeKernelSource): [Read-Write] The compute kernel source asset. A kernel’s source may be authored by different mechanisms; e.g. HLSL text, VPL graph, ML Meta Lang, etc