Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
retrotom
Visitor

Scene Graph Component Library Script Resolution

How does script resolution work when loading a remote component library (scene graph)?

With a typical scene graph app, you specify script dependencies for a task like so:


<script type="text/brightscript" uri="pkg:/components/guide_content_reader.brs" />


How is this supposed to work with a component library? When I include tags like this, the component library fails to load. Is it a problem with the uri attribute?
0 Kudos
2 REPLIES 2
brybott
Visitor

Re: Scene Graph Component Library Script Resolution

The example Component Library app shows how to do this. Find both relevant downloads on this page:
https://sdkdocs.roku.com/display/sdkdoc ... entLibrary

but basically, you include the .brs file in the components folder of your component library package and access it like:


<script type="text/brightscript" uri="libpkg:/components/guide_content_reader.brs" />
0 Kudos
retrotom
Visitor

Re: Scene Graph Component Library Script Resolution

Thanks, man. Totally missed that.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.