Announcement

Collapse
No announcement yet.

no instance of the overload function CreateMeshSection matches the argument list

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    no instance of the overload function CreateMeshSection matches the argument list

    Code:
    //defined in my header file
    const TArray<FVector> Vertices;
    const TArray<int32> Triangles;
    const TArray<FVector2D> UV0;
    
    //in the cpp file
    UProceduralMeshComponent::CreateMeshSection(0, Vertices, Triangles, 0, UV0, 0, 0, false);
    This gives me the error: no instance of the overload function UProceduralMeshComponent::CreateMeshSection matches the argument list.

    #2
    Can you just pass 0 for the optional TArray parameters you don't wish to use? Looking at the function signature for CreateMeshSection() it looks like you have everything there. You may want to just pass in empty TArrays instead of zeros for the params you don't want.
    Last edited by Ed.Kaminski; 05-11-2020, 10:37 PM.

    Comment

    Working...
    X