Function getChildBySpriteName

#include <Geode/utils/cocos.hpp>cocos2d::CCNode*getChildBySpriteName(,)

Get the first child that has the given sprite name either in the sprite or in the sprite inside the button.

Parameters

parent

Parent node to search in

name

Name of the sprite to search for
Return value
Child with the given sprite name, or nullptr if there is none
Examples0