magic-script-components-react-native
magic-script-components-react-native copied to clipboard
Shared Resources
< Main issue
Description
Create an entity (e.g. Resources) which manages instances of resources (audio, video, model, image).
- It should allow loading given resource only once (initial load via path).
- It should allow accessing given resource by index.
- The resource's index can be used as an entry point in all components that use resources (e.g. button, model, audio). Check Lumin documentation for more details.
- It should allow resetting given resource.
Based on Lumin Resource class, the native interface may look like this:
class Resource {
Int getResourceId()
bool isResourceValid()
ResourceType getResourceType()
String getFileName()
String getBasePath()
LoadStatus getLoadStatus()
}
Completion status
- [ ] Android
- [ ] iOS