Gems/EMotionFX/Code/EMotionFX/Source/Node.cpp
void Node::RecursiveCountChildNodes(size_t& numNodes)
    {
        // increase the counter
        numNodes++;

        // recurse down the hierarchy
        for (size_t childIndex : m_childIndices)
        {
            m_skeleton->GetNode(childIndex)->RecursiveCountChildNodes(numNodes);
        }
    }
// recursively count the number of nodes down the hierarchy
recursively count the number of nodes down the hierarchy
recursively count the number of nodes down the hierarchy
void Node::RecursiveCountChildNodes(size_t& numNodes)
    {
        numNodes++;
        for (size_t childIndex : m_childIndices)
        {
            m_skeleton->GetNode(childIndex)->RecursiveCountChildNodes(numNodes);
        }
    }
void Node :: RecursiveCountChildNodes ( size_t & numNodes ) { numNodes ++ ; for ( size_t childIndex : m_childIndices ) { m_skeleton -> GetNode ( childIndex ) -> RecursiveCountChildNodes ( numNodes ) ; } }
recursively count the number of nodes down the hierarchy
recursively count the number of nodes down the hierarchy
// increase the counter // recurse down the hierarchy