Navigation
API > API/Plugins > API/Plugins/UVEditorTools > API/Plugins/UVEditorTools/ToolTargets > API/Plugins/UVEditorTools/ToolTargets/UUVEditorToolMeshInput
References
| Module | UVEditorTools |
| Header | /Engine/Plugins/Editor/UVEditor/Source/UVEditorTools/Public/ToolTargets/UVEditorToolMeshInput.h |
| Include | #include "ToolTargets/UVEditorToolMeshInput.h" |
Syntax
static NONE_CHANGED_ARG = &UVEditorToolMeshInputLocals::EmptyArray;
Remarks
Notes above the below convenience functions:
Passing nullptr for ChangedVids/ChagnedElementIDs/ChangedConnectivityTids means that all vids/elements/tids need updating, respectively. Passing UUVEditorToolMeshInput::NONE_CHANGED_ARG is equivalent to passing a pointer to an empty array, and means that none changed. Otherwise only the vids/elements/tids in the pointed-to arrays are iterated over in the updated mesh. While passing these allows updates to be quicker, note that failing to include the relevant tids/vids/elements can put the input object into an invalid state or hit a check, for instance if a triangle refers to a new vid that was not added in.
ChangedVids/ChangedElementIDs is allowed to have new elements, since it is natural to split UVs. However, ChangedConnectivityTids must not have new Tids, because the tids form our correspondence between the unwrap mesh and the original layer. Also note that if you are gathering the changed vids/elements based off of triangles, you should gather them from the post-change mesh/overlay so that you do not miss any added elements, and since removed elements are captured by changed tri connectivity.
FastRenderUpdateTids is an optional list of triangles whose render data needs updating, which can allow for faster preview updates if the render buffers are properly split apart. If provided, it should be a superset of ChangedConnectivityTids, and should contain the one-ring triangles of ChangedVids.
If updating the preview objects, note that the functions do not try to cancel any active computations, so an active computation could reset things once it completes. Can be passed in as a ChangedVids/ChangedElements/ChangedConnectivityTids arguments as an equivalent of passing a pointer to an empty array.