You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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 31960631 by jeremy moore in 5.4 branch]
26 lines
1.1 KiB
C++
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);
|
|
};
|