# Chapter 10 - scene editor not recognizing custom class?

**URL:** <https://forums.kodeco.com/t/chapter-10-scene-editor-not-recognizing-custom-class/15297>\
**Category:** 2D iOS & tvOS Games by Tutorials\
**Created:** [May 28, 2016, 3:19am UTC](https://forums.kodeco.com/t/chapter-10-scene-editor-not-recognizing-custom-class/15297 "2016-05-28T03:19:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soggybag](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@soggybag](https://forums.kodeco.com/u/soggybag)\
**Post date:** [May 28, 2016, 3:19am UTC](https://forums.kodeco.com/t/chapter-10-scene-editor-not-recognizing-custom-class/15297/1 "2016-05-28T03:19:51Z")

</div>

I’m sure I’ve got everything setup correctly but, Xcode doesn’t recognize the custom BedNode class. There are no errors. I can enumerate all of the nodes. I tried adding initializers to the BedNode class, these don’t seem to get called, and the enumeration loop doesn’t recognize

```
customNode = node as? CustomNodeEvents.

```

I tried adding the name of my project in front to the class name in the custom class field. Something like

```
Chap2.BedNode

```

---

<div class="post-metadata">

**Author:** ![soggybag](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@soggybag](https://forums.kodeco.com/u/soggybag)\
**Post date:** [May 29, 2016, 3:48am UTC](https://forums.kodeco.com/t/chapter-10-scene-editor-not-recognizing-custom-class/15297/2 "2016-05-29T03:48:04Z")

</div>

If anyone else has the problem this solution worked for me:

> <https://stackoverflow.com/questions/30833196/cant-get-custom-class-working-in-spritekit-scene-swift-xcode7-beta/31097745#31097745>

---

<div class="post-metadata">

**Author:** ![sammyw9585](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@sammyw9585](https://forums.kodeco.com/u/sammyw9585)\
**Post date:** [November 19, 2017, 10:25pm UTC](https://forums.kodeco.com/t/chapter-10-scene-editor-not-recognizing-custom-class/15297/3 "2017-11-19T22:25:49Z")

</div>

I had the same problem of the custom BedNode class not being recognized and Xcode just treating it as a generic SKSpriteNode instead. Finally, after much searching through my code I found out that I made a very simple and stupid but easy to overlook mistake. Turns out in my case that the reason that my BedNode.swift file and the BedNode class defined in it was not recognized by Xcode was because I was writing the start of the class definition as “class bedNode” instead of “class BedNode”. Doh!
