🌞 Victory Plugin ~ 's Extra Blueprint Nodes for UE5, No C++ Required!

Victory Plugin for 5.0.2 With New Nodes (Yes!!!)

The Nodes listed in above posts have been added!

:racehorse: :dash: Annnnd… :racehorse: :dash:

:sparkling_heart: Get Static Mesh Vertex Positions :sparkling_heart: (Scaled, Rotated, & Translated!)
is :zap: :zap: :zap: BACK :zap: :zap: :zap:

The C++ Code

//Build.cs "MeshDescription"
#include "StaticMeshDescription.h"
bool URamaCodePluginBPLibrary::GetStaticMeshVertexLocations(UStaticMeshComponent* Comp, TArray<FVector>& VertexPositions, int32 LodIndex)
{
	if(!Comp) 
	{
		return false;
	}
	
	TObjectPtr<UStaticMesh> MeshPtr = Comp->GetStaticMesh();
	if(!MeshPtr)
	{
		return false;
	}
	
	UStaticMeshDescription* Desc = MeshPtr->GetStaticMeshDescription(LodIndex);
	if(!Desc)
	{ 
		return false;
	}
	
	FTransform WorldTransform = Comp->GetComponentTransform();
	FVertexArray& Verts = Desc->Vertices();
	for (FVertexID EachVertId : Verts.GetElementIDs())
	{   
		VertexPositions.Add(
			WorldTransform.TransformPosition( Desc->GetVertexPosition(EachVertId) ) 
		);
	}  
	 
	return true;
}

Enjoy!

:zap: :sparkling_heart: :zap:

2 Likes