Scene Switching Method for Android Unity Hybrid Apps

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

During hybrid development of Android and Unity projects, scene switching in application development projects often results in issues like getting stuck, flashback, or black/white screens due to inefficient loading of three-dimensional scenes, leading to a poor user experience.

Innovation Solution

A scene switching method that involves loading a first Activity interface, removing the first scene, loading the second Activity interface, and replacing the first scene with a second scene from a scene development project, utilizing a processing mechanism of removal-addition-replacement to enhance scene switching speed and efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional scene switching method is used in hybrid development, then scene switching can be implemented, but loading is not smooth and problems like getting stuck, flashback, black screen or white screen occur

Engineering Contradiction:
Improvescene switching stabilityVSAvoidpage loading speed
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent applies preliminary action by pre-loading the target scene in the background before the actual scene switching occurs. When a user initiates a scene switch, the system has already prepared the target scene data, allowing for instant switching without black screens or loading delays. This is implemented through background threading that prefetches scene resources and pre-initializes scene objects before they are needed.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces an intermediary scene management mechanism that acts as a buffer between the current scene and target scene. This intermediary layer manages the transition process, coordinating the unloading of the current scene and loading of the target scene to prevent conflicts and resource contention. The intermediary manager handles scene graph updates, resource allocation, and synchronization to ensure smooth transitions without flickering or black screens.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If three-dimensional scenes are loaded during Activity interface switching, then scene content is complete, but switching speed decreases and user experience deteriorates

Engineering Contradiction:
Improvescene content completenessVSAvoidscene switching time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system performs preliminary loading of three-dimensional scene resources in the background before the actual scene switch is needed. Scene models, textures, and other assets are pre-fetched and prepared in advance, so when switching occurs, only the final scene graph assembly is required, dramatically reducing perceived loading time while maintaining complete scene content.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent segments the scene loading process into multiple independent stages: resource asset loading, scene graph construction, and scene activation. By dividing the monolithic loading process into separate segments that can be executed in parallel and independently optimized, the system reduces overall loading time while ensuring all scene components are fully prepared before switching.

Inventive Principle:
Principle #1Segmentation

3Reliability

If scene loading is performed during Activity interface transition, then scene data is available, but black screen or white screen problems occur

Engineering Contradiction:
Improvescene data availabilityVSAvoiduser interface fluency
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The system prepares all scene data and resources in advance during the Activity transition process, completing scene graph assembly and resource allocation before the new Activity becomes visible. This ensures that when the Activity switches, the scene is already fully loaded and ready for immediate display, eliminating black screens or white screens that would otherwise occur during loading.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent maintains continuous scene rendering during Activity transitions by keeping the current scene active and renderable until the target scene is fully prepared. The scene management system ensures uninterrupted visual output by smoothly transitioning between scenes without complete shutdown, maintaining UI fluency and preventing black screens while scene data is being loaded and prepared.

Inventive Principle:
Principle #20Continuity of useful action

Data Source

PatentUS11782705B2Scene switching method, device and medium
Publication Date: 2023.10.10 BEIJING ZHONGXIANGYING TECH CO LTD
  • US11782705B2 patent drawing
  • US11782705B2 patent drawing
  • US11782705B2 patent drawing

AI summary

This application discloses a scene switching method, device and medium. The method includes after having loaded a first Activity interface of an application development project, removing a first scene contained in the first Activity interface in response to an operation of loading a second Activity interface of the application development project loading the second Activity interface and loading the first scene in the second Activity interface, replacing the first scene with a second scene in the second Activity interface, the multiple scenes being provided by a scene development project imported into the application development project, and the first Activity interface and the second Activity interface being developed and obtained by the application development project.