Basic Blueprint Interface
发布于:2024-11-21
1. Basic Process Interface
Variables visible in the Editor panel are accessible in the blueprint
Start Simulation
Stop Simulation
Set Up: Set up garment data, this blueprint function needs to be called after changing SMD data or other simulation-related parameters in the blueprint to take effect.
Add Triangle Drag Points/Add Drag Points
Remove Drag Points/Remove All Drag Points
Garment Render Mesh Blueprint Interface:
Garment Mesh Component
Get mesh triangle/vertex position
2. Drag and Drop Garment
Line Trace
Sphere Trace
Add the Style3D Interaction Actor to the scene, then drag and drop the garment with the mouse.
Using a blueprint instead of the Style3D Interaction Actor is more suitable for complex VR scenes and other interaction situations, such as complex scenes VR handles.
the detection point for getting the mouse clicks:
the drag movement of the detection point:
Set Auto Receive Input:
3. Get the Thumbnail of the Garment
Local Position
GarmentFolder_Texture_BaseColor_GarmentNamePreview
Blueprint Node
Configuration Path
/Game/GarmentFolder/GarmentName/Texture/BaseColor/GarmentNamePreview