Esempio n. 1
0
 ///<summary>Grab geometry data from a ProceduralMeshComponent.</summary>
 public static (IReadOnlyCollection <Vector>, IReadOnlyCollection <int>, IReadOnlyCollection <Vector>, IReadOnlyCollection <Vector2D>, IReadOnlyCollection <ProcMeshTangent>) GetSectionFromProceduralMesh(ProceduralMeshComponent InProcMesh, int SectionIndex) =>
 KismetProceduralMeshLibrary_methods.GetSectionFromProceduralMesh_method.Invoke(InProcMesh, SectionIndex);
Esempio n. 2
0
 ///<summary>Slice the ProceduralMeshComponent (including simple convex collision) using a plane.</summary>
 ///<remarks>
 ///Optionally create 'cap' geometry.
 ///@param  InProcMesh                              ProceduralMeshComponent to slice
 ///@param  PlanePosition                   Point on the plane to use for slicing, in world space
 ///@param  PlaneNormal                             Normal of plane used for slicing. Geometry on the positive side of the plane will be kept.
 ///@param  bCreateOtherHalf                If true, an additional ProceduralMeshComponent (OutOtherHalfProcMesh) will be created using the other half of the sliced geometry
 ///@param  OutOtherHalfProcMesh    If bCreateOtherHalf is set, this is the new component created. Its owner will be the same as the supplied InProcMesh.
 ///@param  CapOption                               If and how to create 'cap' geometry on the slicing plane
 ///@param  CapMaterial                             If creating a new section for the cap, assign this material to that section
 ///</remarks>
 public static ProceduralMeshComponent SliceProceduralMesh(ProceduralMeshComponent InProcMesh, Vector PlanePosition, Vector PlaneNormal, bool bCreateOtherHalf, EProcMeshSliceCapOption CapOption, MaterialInterface CapMaterial) =>
 KismetProceduralMeshLibrary_methods.SliceProceduralMesh_method.Invoke(InProcMesh, PlanePosition, PlaneNormal, bCreateOtherHalf, CapOption, CapMaterial);
Esempio n. 3
0
 ///<summary>Copy materials from StaticMeshComponent to ProceduralMeshComponent.</summary>
 public static void CopyProceduralMeshFromStaticMeshComponent(StaticMeshComponent StaticMeshComponent, int LODIndex, ProceduralMeshComponent ProcMeshComponent, bool bCreateCollision) =>
 KismetProceduralMeshLibrary_methods.CopyProceduralMeshFromStaticMeshComponent_method.Invoke(StaticMeshComponent, LODIndex, ProcMeshComponent, bCreateCollision);