Advertisement
Guest User

GetVertexPaintData Declaration

a guest
Oct 8th, 2016
759
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1. HEADER FILE DECLARATION:
  2.  
  3. /**
  4. * Returns the Vertex Color of the nearest Vertex to the passed Position.
  5. * Needs a StaticMeshComponent, LODIndex and the actual Position (e.g. from a Trace).
  6. *
  7. * @param    StaticMeshComp        StaticMeshComponent of which we want the FColor from.
  8. * @param    Position            (LOCAL) Position of which we want the FColor from. Will find nearest Vertex to this passed Position.
  9. * @param    LODIndex            LODIndex to use. Use 0 as a default Number.
  10. * @return                        FColor of the nearest Vertex or White if an error occurred.
  11. */
  12. UFUNCTION(BlueprintCallable, Category = "Test")
  13.     static FColor GetVertexPaintData(UStaticMeshComponent* StaticMeshComp, FVector Position, int32 LODIndex = 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement