Unity-based word editing method and terminal
An editing terminal and editing technology, applied in electrical digital data processing, special data processing applications, instruments, etc., can solve problems such as low flexibility, poor user experience, and inability to edit a single word, and achieve strong flexibility and user experience. Good results
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] Please refer to figure 1 , a word editing method based on Unity, including steps:
[0055] S1. Create a prefabricated text edit box for editing words and a word table that stores each word and the corresponding attribute information of the word. When receiving a word input into the text input box, add the word to the word surface;
[0056] According to the change of the length of the text content in the text input box, it is judged whether to add words, replace words or delete words, if add words or replace words, then perform step S2; if delete words, then perform step S4;
[0057] Wherein, said judging according to the change of the length of the text content in the text input box whether to add words, replace words or delete words comprises:
[0058] If the length of the text content in the text input box remains the same, it is the replacement word; if the length of the text content in the text input box becomes larger, it is the addition word; if the length of th...
Embodiment 2
[0064] Please refer to figure 2 , a kind of word editing terminal 1 based on Unity, comprise memory 2, processor 3 and be stored on described memory 2 and the computer program that can run on described processor 3, described processor 3 executes described computer program When performing the following steps:
[0065] S1. Create a prefabricated text edit box for editing words and a word table that stores each word and the corresponding attribute information of the word. When receiving a word input into the text input box, add the word to the word surface;
[0066] According to the change of the length of the text content in the text input box, it is judged whether to add words, replace words or delete words, if add words or replace words, then perform step S2; if delete words, then perform step S4;
[0067] Wherein, said judging according to the change of the length of the text content in the text input box whether to add words, replace words or delete words comprises:
[0...
Embodiment 3
[0074] Apply the above-mentioned Unity-based word editing method to specific scenarios:
[0075] S1. Create a prefabricated text editing box for editing words and a word table that stores each word and the corresponding attribute information of the word. When receiving a word input into the text input box, add the word to the word surface;
[0076] You can define a custom class fontInfo to store text information, such as color, font, bold, italic, etc.;
[0077] Encapsulate a FontClass class, which contains the information contained in the entire word editor: such as a List Set, that is, the word table, is used to store each word and its corresponding attribute information, word background frame, picture collection (used to save the picture address and information corresponding to the picture, such as picture size, width and height, etc.), alignment, display effect, etc. , wherein the display effects include ripples appearing, fading in and out, changing from small to large,...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com


