plan_set_pick_id
---- sub-entity tagging for picking. Call before emitting a part's pickable segments in a plan_render callback; a click then resolves to (node, sub_id) and the canvas highlights just that part. 0 = the whole node. Segments for one sub-id must be emitted contiguously.
Prototype
void (*plan_set_pick_id)(Yu3dPlanCtx*, int sub_id)
Parameters
| Declaration | Name |
|---|---|
Yu3dPlanCtx* | — |
int sub_id | sub_id |
Returns
void
Same group (Properties)
Declared in sdk/include/yu3d_plugin.h. Reached through the host table: host->plan_set_pick_id(…). Guard with YU3D_HOST_HAS(host, plan_set_pick_id) if your plugin must also load in an older host.