Function getChildBySpriteFrameName

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

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

Parameters

parent

Parent node to search in

name

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