UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TypedElementPrimitiveCustomDataInterface.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "UObject/Interface.h"
7
8#include "TypedElementPrimitiveCustomDataInterface.generated.h"
9
10UINTERFACE(MinimalAPI, BlueprintType, meta = (CannotImplementInterfaceInBlueprint))
15
21{
23
24public:
25
27 virtual void SetCustomDataValue(const FTypedElementHandle& InElementHandle, int32 CustomDataIndex, float CustomDataValue, bool bMarkRenderStateDirty = false) {};
28
29 //~ Scripting Interface
30
31 // Sets all Primitive's CustomData values
32 UFUNCTION(BlueprintCallable, Category="TypedElementInterfaces|CustomData")
34
35 // Sets a single Primitive's CustomData value
36 UFUNCTION(BlueprintCallable, Category="TypedElementInterfaces|CustomData")
38};
39
40template <>
42{
43 void SetCustomData(TArrayView<float> CustomDataFloats, bool bMarkRenderStateDirty = false) const { return InterfacePtr->SetCustomData(*this, CustomDataFloats, bMarkRenderStateDirty); }
44 void SetCustomDataValue(int32 CustomDataIndex, float CustomDataValue, bool bMarkRenderStateDirty = false) { return InterfacePtr->SetCustomDataValue(*this, CustomDataIndex, CustomDataValue, bMarkRenderStateDirty); }
45};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define UINTERFACE(...)
Definition ObjectMacros.h:780
Definition TypedElementPrimitiveCustomDataInterface.h:21
virtual void SetCustomData(const FTypedElementHandle &InElementHandle, TArrayView< const float > CustomDataFloats, bool bMarkRenderStateDirty=false)
Definition TypedElementPrimitiveCustomDataInterface.h:26
virtual void SetCustomDataValue(const FTypedElementHandle &InElementHandle, int32 CustomDataIndex, float CustomDataValue, bool bMarkRenderStateDirty=false)
Definition TypedElementPrimitiveCustomDataInterface.h:27
Definition ArrayView.h:139
Definition Array.h:670
Definition Interface.h:19
Definition TypedElementPrimitiveCustomDataInterface.h:12
@ false
Definition radaudio_common.h:23
Definition TypedElementHandle.h:625
Definition TypedElementHandle.h:18
Definition TypedElementHandle.h:271
void SetCustomData(TArrayView< float > CustomDataFloats, bool bMarkRenderStateDirty=false) const
Definition TypedElementPrimitiveCustomDataInterface.h:43
void SetCustomDataValue(int32 CustomDataIndex, float CustomDataValue, bool bMarkRenderStateDirty=false)
Definition TypedElementPrimitiveCustomDataInterface.h:44
Definition TypedElementHandle.h:396