I have a Jump node, and I am trying to find both buttons in the same Jump node script? Code: let jumpLeftButton = self.ui().find('Jump Left')[0]; //jump left button let jumpRightButton = self.ui().find('Jump Right')[1]; //jump right button log(jumpLeftButton); log(jumpRightButton); my logs are showing: [object Button] undefined Thanks -Larry
DOH! Code: let jumpLeftButton = self.ui().find('Jump Left')[0]; //jump left button let jumpRightButton = self.ui().find('Jump Right')[0]; //jump right button log(jumpLeftButton); log(jumpRightButton); Now my logs are showing: [object Button] [object Button] Good grief, lol. I just had to think a little about what was happening. "find" will search your UI, and find (as an array) the element that is named 'Jump Left' and return in the first array index [0], and so always use index [0] when searching for other buttons in your UI, because it's doing the same thing. Lesson learned! -Larry