Console implementation method based on Unity engine and terminal
An implementation method and technology of the console, applied in the field of Unity engine development, can solve the problems that the Unity engine does not have the ability to create consoles, low operation efficiency, and complexity, so as to facilitate control or debugging of programs, improve efficiency, and avoid overcomplicated effects.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0069] Please refer to figure 1 , a console implementation method based on the Unity engine, including steps:
[0070] Receive the interface instance reference set after creating the interface;
[0071] Among them, the interactive interface can be developed and created based on UI components such as native UI or UGUI, and the user inputs instructions through the interactive interface, and the feedback result of the instruction can be displayed on the interactive interface; the developer can customize the interactive interface , the control script of the interactive interface needs to be inherited from IConsoleView, and the interactive interface provides instruction input and result output methods;
[0072] Specifically, the instance reference of the interactive interface is managed through the control module of the console, and the instance reference of the interactive interface transmitted by the control module during initialization is received.
[0073] Filter out all comm...
Embodiment 2
[0089] Please refer to image 3 , apply the method described in Embodiment 1 to a specific example:
[0090] A console implementation method based on the Unity engine, including steps:
[0091] Receive the interface instance reference set after creating the interface ConsoleView;
[0092] Among them, the interactive interface can be developed and created based on UI components such as native UI or UGUI, and the user inputs instructions through the interactive interface, and the feedback result of the instruction can be displayed on the interactive interface; the developer can customize the interactive interface , the control script of the interactive interface needs to be inherited from IConsoleView, the interactive interface provides instruction input GetCommand () and result output method AppendLine (line: string), and the input described instruction is a string;
[0093] Specifically, the console control module ConsoleController manages the instance reference of the inter...
Embodiment 3
[0111] Please refer to figure 2 , a console based on the Unity engine implements a terminal 1, including a memory 2, a processor 3 and a computer program stored on the memory 2 and operable on the processor 3, and the processor 3 executes the computer program Each step in the first embodiment is realized at the same time.
[0112] In summary, the console implementation method and terminal based on the Unity engine provided by the present invention receive instructions input through an interactive interface, parse the instructions into a command part and a parameter part, and find the corresponding command according to the command part example, by matching the command character with the command instance corresponding to the instruction, the command instance corresponding to each instruction can be accurately found, the accuracy rate is improved, and the matching process is convenient and fast, and the parameter part is passed to The command instance is used to execute the com...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com