Class KismetProceduralMeshLibrary
Kismet Procedural Mesh Library
Inheritance
System.Object
KismetProceduralMeshLibrary
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: UE4DotNet.dll
Syntax
public class KismetProceduralMeshLibrary : BlueprintFunctionLibrary
Properties
|
Improve this Doc
View Source
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static KismetProceduralMeshLibrary DefaultObject { get; }
Property Value
|
Improve this Doc
View Source
StaticClass
Declaration
public static Class StaticClass { get; }
Property Value
Methods
|
Improve this Doc
View Source
Automatically generate normals and tangent vectors for a mesh
UVs are required for correct tangent generation.
Declaration
public static (IReadOnlyCollection<Vector>, IReadOnlyCollection<ProcMeshTangent>) CalculateTangentsForMesh(byte Vertices, byte Triangles, byte UVs)
Parameters
Type |
Name |
Description |
System.Byte |
Vertices |
|
System.Byte |
Triangles |
|
System.Byte |
UVs |
|
Returns
Type |
Description |
System.ValueTuple<System.Collections.Generic.IReadOnlyCollection<Vector>, System.Collections.Generic.IReadOnlyCollection<ProcMeshTangent>> |
|
|
Improve this Doc
View Source
ConvertQuadToTriangles(Byte, Int32, Int32, Int32, Int32)
Add a quad, specified by four indices, to a triangle index buffer as two triangles.
Declaration
public static void ConvertQuadToTriangles(byte Triangles, int Vert0, int Vert1, int Vert2, int Vert3)
Parameters
Type |
Name |
Description |
System.Byte |
Triangles |
|
System.Int32 |
Vert0 |
|
System.Int32 |
Vert1 |
|
System.Int32 |
Vert2 |
|
System.Int32 |
Vert3 |
|
|
Improve this Doc
View Source
CopyProceduralMeshFromStaticMeshComponent(StaticMeshComponent, Int32, ProceduralMeshComponent, Boolean)
Copy materials from StaticMeshComponent to ProceduralMeshComponent.
Declaration
public static void CopyProceduralMeshFromStaticMeshComponent(StaticMeshComponent StaticMeshComponent, int LODIndex, ProceduralMeshComponent ProcMeshComponent, bool bCreateCollision)
Parameters
|
Improve this Doc
View Source
CreateGridMeshTriangles(Int32, Int32, Boolean)
Generate an index buffer for a grid of quads.
Declaration
public static IReadOnlyCollection<int> CreateGridMeshTriangles(int NumX, int NumY, bool bWinding)
Parameters
Type |
Name |
Description |
System.Int32 |
NumX |
|
System.Int32 |
NumY |
|
System.Boolean |
bWinding |
|
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<System.Int32> |
|
|
Improve this Doc
View Source
GenerateBoxMesh(Vector)
Generate vertex and index buffer for a simple box, given the supplied dimensions. Normals, UVs and tangents are also generated for each vertex.
Declaration
public static (IReadOnlyCollection<Vector>, IReadOnlyCollection<int>, IReadOnlyCollection<Vector>, IReadOnlyCollection<Vector2D>, IReadOnlyCollection<ProcMeshTangent>) GenerateBoxMesh(Vector BoxRadius)
Parameters
Type |
Name |
Description |
Vector |
BoxRadius |
|
Returns
Type |
Description |
System.ValueTuple<System.Collections.Generic.IReadOnlyCollection<Vector>, System.Collections.Generic.IReadOnlyCollection<System.Int32>, System.Collections.Generic.IReadOnlyCollection<Vector>, System.Collections.Generic.IReadOnlyCollection<Vector2D>, System.Collections.Generic.IReadOnlyCollection<ProcMeshTangent>> |
|
|
Improve this Doc
View Source
GetSectionFromProceduralMesh(ProceduralMeshComponent, Int32)
Grab geometry data from a ProceduralMeshComponent.
Declaration
public static (IReadOnlyCollection<Vector>, IReadOnlyCollection<int>, IReadOnlyCollection<Vector>, IReadOnlyCollection<Vector2D>, IReadOnlyCollection<ProcMeshTangent>) GetSectionFromProceduralMesh(ProceduralMeshComponent InProcMesh, int SectionIndex)
Parameters
Returns
Type |
Description |
System.ValueTuple<System.Collections.Generic.IReadOnlyCollection<Vector>, System.Collections.Generic.IReadOnlyCollection<System.Int32>, System.Collections.Generic.IReadOnlyCollection<Vector>, System.Collections.Generic.IReadOnlyCollection<Vector2D>, System.Collections.Generic.IReadOnlyCollection<ProcMeshTangent>> |
|
|
Improve this Doc
View Source
GetSectionFromStaticMesh(StaticMesh, Int32, Int32)
Grab geometry data from a StaticMesh asset.
Declaration
public static (IReadOnlyCollection<Vector>, IReadOnlyCollection<int>, IReadOnlyCollection<Vector>, IReadOnlyCollection<Vector2D>, IReadOnlyCollection<ProcMeshTangent>) GetSectionFromStaticMesh(StaticMesh InMesh, int LODIndex, int SectionIndex)
Parameters
Type |
Name |
Description |
StaticMesh |
InMesh |
|
System.Int32 |
LODIndex |
|
System.Int32 |
SectionIndex |
|
Returns
Type |
Description |
System.ValueTuple<System.Collections.Generic.IReadOnlyCollection<Vector>, System.Collections.Generic.IReadOnlyCollection<System.Int32>, System.Collections.Generic.IReadOnlyCollection<Vector>, System.Collections.Generic.IReadOnlyCollection<Vector2D>, System.Collections.Generic.IReadOnlyCollection<ProcMeshTangent>> |
|
|
Improve this Doc
View Source
New(UObject, Name)
Spawn an object of this class
Declaration
public static KismetProceduralMeshLibrary New(UObject obj = null, Name name = default(Name))
Parameters
Returns
|
Improve this Doc
View Source
SliceProceduralMesh(ProceduralMeshComponent, Vector, Vector, Boolean, EProcMeshSliceCapOption, MaterialInterface)
Slice the ProceduralMeshComponent (including simple convex collision) using a plane.
Declaration
public static ProceduralMeshComponent SliceProceduralMesh(ProceduralMeshComponent InProcMesh, Vector PlanePosition, Vector PlaneNormal, bool bCreateOtherHalf, EProcMeshSliceCapOption CapOption, MaterialInterface CapMaterial)
Parameters
Returns
Operators
|
Improve this Doc
View Source
Implicit(IntPtr to KismetProceduralMeshLibrary)
Convert from IntPtr to UObject
Declaration
public static implicit operator KismetProceduralMeshLibrary(IntPtr p)
Parameters
Type |
Name |
Description |
System.IntPtr |
p |
|
Returns