MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / MoveSibling

Method MoveSibling

StereoKit/Assets/Model.cs:659–668  ·  view source on GitHub ↗

Advances this ModelNode class to the next Sibling in the hierarchy tree. If it cannot, then it remains the same. True if it moved to the Sibling, false if there was no Sibling to move to.

()

Source from the content-addressed store, hash-verified

657 /// <returns>True if it moved to the Sibling, false if there was no
658 /// Sibling to move to.</returns>
659 public bool MoveSibling()
660 {
661 int sibling = NativeAPI.model_node_sibling(_model._inst, _nodeId);
662 if (sibling >= 0)
663 {
664 _nodeId = sibling;
665 return true;
666 }
667 return false;
668 }
669 /// <summary>Moves this ModelNode class to the Parent up the hierarchy
670 /// tree. If it cannot, then it remains the same. </summary>
671 /// <returns>True if it moved to the Parent, false if there was no

Callers

nothing calls this directly

Calls 1

model_node_siblingMethod · 0.80

Tested by

no test coverage detected