what is the Resource Class used for?
-
Hi eL,
The Resource class is the base class for internal Resources in Lens Studio. It's not really meant to be directly used in script. Instead, it's the parent of classes like TextureProvider, which is commonly used to control playback of animated textures (that Lens Studio API page has a script example).
The pattern of parent and child classes is a prevailing feature of Object-Oriented Programming, which you can learn more about here.
Best,
Peter
Comment actions
Please sign in to leave a comment.
Have a comment?