Using AddGraphNode() has the advantage that RemoveReference() is called automatically for each node when the BaseProcessor's destructor is called and that we easily can verify if all references are valid with the AreGraphNodesValid() method.
However, in this case we ourself take care to remove the requested references:
However, in this case we ourself take care to remove the requested references:
// GetReference gets a reference and increases the reference counter
mBallTransform.GetReference(root, "line_"+Util::UInt32ToString(i));
mBallTransform->SetPositionY(-20.0 + (maxInstances/2 - i)*40);
// RemoveReference removes the reference and decreases the reference counter
mBallTransform.RemoveReference();