Function isSpriteFrameName

#include <Geode/utils/cocos.hpp>boolisSpriteFrameName(,)

Checks if a node has the given sprite frame name either in the sprite or in the sprite inside the button.

Parameters

node

Node to check

name

Name of the sprite frame to search for
Return value
True if the node has the given sprite frame name
Examples0