User Tools

Site Tools


en:examples:orx_scroll:get_child_under_scrollobject_by_name

This is an old revision of the document!


Get Child ScrollObject By Name

ScrollObject* MyScrollObject::GetChildByName(const orxSTRING childName) {
 
	for (ScrollObject *child = this->GetOwnedChild(); child; child = child->GetOwnedSibling()) {
		if (orxString_Compare(child->GetModelName(), childName) == 0) {
			return child;
		}
	}
 
        return orxNULL;
}
en/examples/orx_scroll/get_child_under_scrollobject_by_name.1657802650.txt.gz · Last modified: 2022/07/14 05:44 (3 years ago) by sausage