getCoreAssetsPath
Get the Core Resource Root Path
getCoreAssetsPath returns the static resource root path used by the Runtime Core module. These resources typically include the shader files (Shaders), base fonts, default textures, and other built-in materials required for the engine to run.
This path is passed in via KEY_CORE_ASSETS_PATH when loadCore is called.
Method Declaration
java
/**
* Return the root path of the resources used by the Runtime Core module.
* * @return The absolute path string where the core resources reside
*/
String getCoreAssetsPath();Runtime Behavior
- Resource location: When the engine renders each frame or initializes base components, it looks for the required underlying binary resources based on this path.
- Path validation: If this path points to the wrong location or files are missing, the game usually manifests as a black screen, garbled text, or rendering anomalies.
- Independence: This path is usually located in a subdirectory of
getCoreRootPath, but in some custom deployments it can also be configured as an independent physical location.
Example
java
// Get the resource path from the core handle
String assetsPath = coreHandle.getCoreAssetsPath();
// Print a log to troubleshoot resource loading issues
Log.i("SUDOP", "Core internal assets are located at: " + assetsPath);
// Business logic check: ensure this path actually exists
File assetsDir = new File(assetsPath);
if (!assetsDir.exists()) {
Log.e("SUDOP", "Critical Error: Core assets directory is missing!");
}Notes
- Read-only: This path is used internally by the SDK engine; the business layer should avoid directly modifying or deleting any content under this directory.
- Distinguish from game package resources: This path stores "engine-level" resources, whereas specific game materials (such as models and level images) are stored in the path specified by
SUDRTLoadGameParams.
