ncsoft / Unreal.js

Unreal.js: Javascript runtime built for UnrealEngine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error calling CreateMeshSection

TautSt opened this issue · comments

Hello, I get an error when calling function, by looking at typings I provide everything correctly.

   const proceduralMeshComponent = new ProceduralMeshComponent();
   const vertices: Vector[] = [
      createVector(),
      createVector({ Z: 200 }),
      createVector({ X: 200 }),
    ];
    const triangles = [2, 1, 0];
    const normals: Vector[] = [];
    const UV0: Vector2D[] = [];
    const VertexColors: Color[] = [];
    const Tangents: ProcMeshTangent[] = [];
>   proceduralMeshComponent.CreateMeshSection(
      0,
      vertices,
      triangles,
      normals,
      UV0,
      VertexColors,
      Tangents,
      false
    );

Error occurs on proceduralMeshComponent.CreateMeshSection
Error: Should write into array by passing an array instance