Files
UnrealEngineUWP/Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionBlueprintLibrary.h
jeremy moore c8886e0f4c #jira UE-208710
Make SetCustomInstanceData() be part of generic IGeometryCollectionExternalRenderInterface.
It's not truly generic so might to move out to it's own interface?
Add geometry collection blueprint library with function to call this.
#rb Shaun.Kime

[CL 31960698 by jeremy moore in ue5-main branch]
2024-03-01 18:08:42 -05:00

26 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Kismet/BlueprintFunctionLibrary.h"
#include "GeometryCollectionBlueprintLibrary.generated.h"
/** Blueprint library for Geometry Collections. */
UCLASS(meta = (ScriptName = "GeometryCollectionLibrary"))
class GEOMETRYCOLLECTIONENGINE_API UGeometryCollectionBlueprintLibrary : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
/**
* Set a custom instance data value for all instances associated with a geometry collection.
* This assumes that the geometry collection is using a custom instanced renderer.
* @param GeometryCollectionComponent The Geometry Collection Component that we want to set custom instance data on.
* @param CustomDataIndex The custom instance data slot that we want to set.
* @param CustomDataValue The value to set to the custom instance data slot.
*/
UFUNCTION(BlueprintCallable, Category = AtomMaterial)
static void SetISMPoolCustomInstanceData(UGeometryCollectionComponent* GeometryCollectionComponent, int32 CustomDataIndex, float CustomDataValue);
};