 | IAttachNodesUtilsCreateNode Method |
Creates a new attach node on the part.
Namespace:
KASAPIv2
Assembly:
KAS-API-v2 (in KAS-API-v2.dll) Version: KAS API v2
SyntaxAttachNode CreateNode(
Part part,
string nodeName,
Transform nodeTransform
)
Request Example
View SourceParameters
- part
- Type: (Default Namespace)Part
Part to create node for. - nodeName
- Type: SystemString
Name of the node to create. - nodeTransform
- Type: UnityEngineTransform
Transform that specifies node position and orientation.
Return Value
Type:
AttachNodeNew attach node atatched to the part.
Remarks
It's expected there is no node with the same name on the part already. If there is one, then
no extra node will be created, and the properties of the existing node will be updated instead
(see below). However, it's an unexpected situation, so a warning record will be logged.
The node will have the following properties:
- Size is "small".
- Attach method is FIXED_JOINT.
- Node type is Stack.
See Also