Get the first child that has the given sprite name either in the sprite or in the sprite inside the button.
Function getChildBySpriteName
#include <Geode/utils/cocos.hpp>cocos2d::CCNode*parent
,charconst*name
)parent
Parent node to search in
name
Name of the sprite to search for
Child with the given sprite name, or nullptr if there is none