Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 

Fresh PanelSet has a Child Count of 2 already

I am trying to create a OverhangPanelSetScene, where I am pretty much making a settings page.

Before even doing any sort of modification, I notice that the 


print "PANEL SET SIZE", m.top.panelSet.getChildCount()


returns a size of 2, but I don't see how it is possible since I have not created or appended any children that I've defined.

What gives?

The two items added:


ITEM            <Component: roSGNodeSmiley Tongueoster> =
{
    audioGuideText: ""
    bitmap: <Component: roSGNode:Bitmap>
    bitmapHeight: 45
    bitmapMargins: <Component: roAssociativeArray>
    bitmapWidth: 45
    blendColor: -1
    enableColorBlending: false
    failedBitmap: <Component: roInvalid>
    failedBitmapOpacity: 1
    failedBitmapUri: ""
    height: 0
    loadDisplayMode: "noscale"
    loadHeight: 0
    loadingBitmap: <Component: roInvalid>
    loadingBitmapOpacity: 1
    loadingBitmapUri: ""
    loadStatus: "ready"
    loadSync: false
    loadWidth: 0
    uri: ""
    width: 0
    childRenderOrder: "last"
    clippingRect: <Component: roAssociativeArray>
    enableRenderTracking: false
    inheritParentOpacity: true
    inheritParentTransform: true
    muteAudioGuide: false
    opacity: 1
    renderPass: 4
    renderTracking: "disabled"
    rotation: 0
    scale: <Component: roArray>
    scaleRotateCenter: <Component: roArray>
    translation: <Component: roArray>
    visible: false
    change: <Component: roAssociativeArray>
    focusable: false
    focusedChild: <Component: roInvalid>
    id: ""
}
ITEM            <Component: roSGNodeSmiley Tongueoster> =
{
    audioGuideText: ""
    bitmap: <Component: roSGNode:Bitmap>
    bitmapHeight: 45
    bitmapMargins: <Component: roAssociativeArray>
    bitmapWidth: 45
    blendColor: -1
    enableColorBlending: false
    failedBitmap: <Component: roInvalid>
    failedBitmapOpacity: 1
    failedBitmapUri: ""
    height: 0
    loadDisplayMode: "noscale"
    loadHeight: 0
    loadingBitmap: <Component: roInvalid>
    loadingBitmapOpacity: 1
    loadingBitmapUri: ""
    loadStatus: "ready"
    loadSync: false
    loadWidth: 0
    uri: ""
    width: 0
    childRenderOrder: "last"
    clippingRect: <Component: roAssociativeArray>
    enableRenderTracking: false
    inheritParentOpacity: true
    inheritParentTransform: true
    muteAudioGuide: false
    opacity: 1
    renderPass: 4
    renderTracking: "disabled"
    rotation: 0
    scale: <Component: roArray>
    scaleRotateCenter: <Component: roArray>
    translation: <Component: roArray>
    visible: false
    change: <Component: roAssociativeArray>
    focusable: false
    focusedChild: <Component: roInvalid>
    id: ""
}
0 Kudos
1 Reply

Re: Fresh PanelSet has a Child Count of 2 already

I can confirm this with the ScenegraphTutorial, using panel sets. Upon initialization, there are two children inside the Panel Set. After initialization, there are 4 children.
0 Kudos