CN108874391A - A kind of mouse modality management method and terminal based on Unity - Google Patents

A kind of mouse modality management method and terminal based on Unity Download PDF

Info

Publication number
CN108874391A
CN108874391A CN201810385859.7A CN201810385859A CN108874391A CN 108874391 A CN108874391 A CN 108874391A CN 201810385859 A CN201810385859 A CN 201810385859A CN 108874391 A CN108874391 A CN 108874391A
Authority
CN
China
Prior art keywords
mouse
mouse pattern
pattern
title
registration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810385859.7A
Other languages
Chinese (zh)
Inventor
刘德建
杨纪聪
林琛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian TQ Digital Co Ltd
Original Assignee
Fujian TQ Digital Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian TQ Digital Co Ltd filed Critical Fujian TQ Digital Co Ltd
Priority to CN201810385859.7A priority Critical patent/CN108874391A/en
Publication of CN108874391A publication Critical patent/CN108874391A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)

Abstract

The present invention provides a kind of mouse modality management method and terminal based on Unity, receives the switching request of mouse pattern, the switching request includes the title of to be switched mouse pattern;According to the title of the to be switched mouse pattern, corresponding mouse pattern is called from the management class for mouse pattern, the management class is created by Unity script, the caching resource and concordance list of registered and loaded mouse pattern are stored in the management class, the concordance list include registered mouse pattern title and corresponding registration ID, the caching of mouse pattern can be managed, resource is avoided to repeat redundancy issue caused by loading.

Description

A kind of mouse modality management method and terminal based on Unity
Technical field
The present invention relates to field of software development more particularly to a kind of mouse modality management methods and terminal based on Unity.
Background technique
When developing a client game, it is essential for meeting the mouse pattern of theme.In the prior art, only It is to be switched over by the mouse pattern interface for simply calling Unity to encapsulate, when mouse pattern to be carried out switching, needs to load The corresponding mouse pattern to be switched is still to carry out corresponding mouse even if applying before the mouse pattern to be switched The load of standard specimen formula resource causes redundancy so that the repetition of resource be caused to load.
Summary of the invention
The technical problem to be solved by the present invention is to:A kind of mouse modality management method and terminal based on Unity is provided, Resource is avoided to repeat redundancy issue caused by loading.
In order to solve the above-mentioned technical problem, a kind of technical solution that the present invention uses for:
A kind of mouse modality management method based on Unity, including step:
The switching request of mouse pattern is received, the switching request includes the title of to be switched mouse pattern;
According to the title of the to be switched mouse pattern, corresponding mouse is called from the management class for mouse pattern Pattern, the management class are created by Unity script, are stored with registered and loaded mouse sample in the management class The caching resource and concordance list of formula, the concordance list include registered mouse pattern title and corresponding registration ID.
In order to solve the above-mentioned technical problem, the another technical solution that the present invention uses for:
A kind of mouse modality management terminal based on Unity, including memory, processor and it is stored in the memory Computer program that is upper and can running on the processor, the processor realize following step when executing the computer program Suddenly:
The switching request of mouse pattern is received, the switching request includes the title of to be switched mouse pattern;
According to the title of the to be switched mouse pattern, corresponding mouse is called from the management class for mouse pattern Pattern, the management class are created by Unity script, are stored with registered and loaded mouse sample in the management class The caching resource and concordance list of formula, the concordance list include registered mouse pattern title and corresponding registration ID.
The beneficial effects of the present invention are:The management class of mouse pattern, the management class are directed to by the creation of Unity script The caching resource of middle registered and loaded the mouse pattern of storage, when receiving the switching request of mouse pattern, root According to the title of mouse pattern, corresponding mouse pattern is called directly, without repeating load mouse pattern resource, resource is avoided to repeat Redundancy caused by load.
Detailed description of the invention
Fig. 1 is a kind of flow chart of mouse modality management method based on Unity of the embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of mouse modality management terminal based on Unity of the embodiment of the present invention;
Label declaration:
1, a kind of mouse modality management terminal based on Unity;2, memory;3, processor.
Specific embodiment
To explain the technical content, the achieved purpose and the effect of the present invention in detail, below in conjunction with embodiment and cooperate attached Figure is explained.
The design of most critical of the present invention is:The management class of mouse pattern, the management are directed to by the creation of Unity script The caching resource of registered and loaded mouse pattern is stored in class.
Please refer to Fig. 1, a kind of mouse modality management method based on Unity, including step:
The switching request of mouse pattern is received, the switching request includes the title of to be switched mouse pattern;
According to the title of the to be switched mouse pattern, corresponding mouse is called from the management class for mouse pattern Pattern, the management class are created by Unity script, are stored with registered and loaded mouse sample in the management class The caching resource and concordance list of formula, the concordance list include registered mouse pattern title and corresponding registration ID.
As can be seen from the above description, the beneficial effects of the present invention are:The pipe of mouse pattern is directed to by the creation of Unity script Class is managed, stores the caching resource of registered and loaded mouse pattern in the management class, when receiving mouse pattern Switching request when, according to the title of mouse pattern, call directly corresponding mouse pattern, without repeat load mouse pattern money Source avoids resource from repeating redundancy caused by loading.
It further, further include step:
The registration request of mouse pattern is received, the registration request includes the title and resource of mouse pattern to be registered Path;
Whether according to the title of the mouse pattern to be registered, determining has the mouse sample of the title in the management class Formula, if so, prompting the mouse pattern registered, if it is not, then carrying out the mouse to be registered according to the resource path The load of pattern, for the mouse pattern distribution registration ID to be registered;
The caching resource of the mouse pattern, the title of the mouse pattern and registration ID are stored to the management Class, the title and registration ID of the mouse pattern correspond.
Seen from the above description, when carrying out the registration of mouse pattern, registered judgement is first made whether, if having infused Volume, then prompt registered, avoids repeated registration, if delaying the resource that registered mouse pattern loaded after the completion of registration Deposit preservation to management class, facilitate it is subsequent call directly, avoid resource from loading, further decrease redundancy.
It further, further include step:
The removal request of mouse pattern is received, the removal request includes the title or registration of mouse pattern to be deleted ID;
Management class is retrieved in concordance list according to the title or registration ID of the mouse pattern to be deleted with the presence or absence of institute Mouse pattern to be deleted is stated, if so, release loads the EMS memory occupation of the mouse pattern to be deleted, and on concordance list Delete the mouse pattern to be deleted title and corresponding registration ID;
Detect whether current mouse pattern is the mouse pattern to be deleted, if so, by current mouse pattern It is forcibly changed into the default style.
Seen from the above description, when carrying out the deletion of mouse pattern, release loads the interior of the mouse pattern of the deletion Occupancy is deposited, the occupied space of useless mouse pattern is discharged in time, improves the utilization rate of resource.
It further, further include step:
The Mono class with life cycle is created by Unity script, is arranged by the calling to the Mono class The title or registration ID of mouse pattern when into an event, the title of mouse pattern when executing the event or registration ID with And the title or registration ID of the mouse pattern when end event.
Seen from the above description, by one Mono class with life cycle of creation, mouse can be more advantageously realized Mark executes automatic switchover when a certain event, improves the flexibility that mouse uses.
It further, further include the priority of mouse pattern to be registered in the registration request;
When executing switching, if there are multiple mouse patterns available, the mouse pattern of highest priority is selected to carry out Switching;
After the completion of the handover, it executes an event monitoring to adjust back, before the title and switching that return to current mouse pattern The title of mouse pattern.
Seen from the above description, through the setting of mouse pattern priority the case where working there are multiple mouse patterns Can guarantee the smooth switching of mouse pattern down, and by event monitoring readjustment convenient for operation layer identify current mouse pattern into Row Function Extension.
Referring to figure 2., a kind of mouse modality management terminal based on Unity, including memory, processor and be stored in On the memory and the computer program that can run on the processor, when the processor executes the computer program Realize following steps:
The switching request of mouse pattern is received, the switching request includes the title of to be switched mouse pattern;
According to the title of the to be switched mouse pattern, corresponding mouse is called from the management class for mouse pattern Pattern, the management class are created by Unity script, are stored with registered and loaded mouse sample in the management class The caching resource and concordance list of formula, the concordance list include registered mouse pattern title and corresponding registration ID.
As can be seen from the above description, the beneficial effects of the present invention are:The pipe of mouse pattern is directed to by the creation of Unity script Class is managed, stores the caching resource of registered and loaded mouse pattern in the management class, when receiving mouse pattern Switching request when, according to the title of mouse pattern, call directly corresponding mouse pattern, without repeat load mouse pattern money Source avoids resource from repeating redundancy caused by loading.
It further, further include realizing step:
The registration request of mouse pattern is received, the registration request includes the title and resource of mouse pattern to be registered Path;
Whether according to the title of the mouse pattern to be registered, determining has the mouse sample of the title in the management class Formula, if so, prompting the mouse pattern registered, if it is not, then carrying out the mouse to be registered according to the resource path The load of pattern, for the mouse pattern distribution registration ID to be registered;
The caching resource of the mouse pattern, the title of the mouse pattern and registration ID are stored to the management Class, the title and registration ID of the mouse pattern correspond.
Seen from the above description, when carrying out the registration of mouse pattern, registered judgement is first made whether, if having infused Volume, then prompt registered, avoids repeated registration, if delaying the resource that registered mouse pattern loaded after the completion of registration Deposit preservation to management class, facilitate it is subsequent call directly, avoid resource from loading, further decrease redundancy.
It further, further include realizing step:
The removal request of mouse pattern is received, the removal request includes the title or registration of mouse pattern to be deleted ID;
Management class is retrieved in concordance list according to the title or registration ID of the mouse pattern to be deleted with the presence or absence of institute Mouse pattern to be deleted is stated, if so, release loads the EMS memory occupation of the mouse pattern to be deleted, and on concordance list Delete the mouse pattern to be deleted title and corresponding registration ID;
Detect whether current mouse pattern is the mouse pattern to be deleted, if so, by current mouse pattern It is forcibly changed into the default style.
Seen from the above description, when carrying out the deletion of mouse pattern, release loads the interior of the mouse pattern of the deletion Occupancy is deposited, the occupied space of useless mouse pattern is discharged in time, improves the utilization rate of resource.
It further, further include realizing step:
The Mono class with life cycle is created by Unity script, is arranged by the calling to the Mono class The title or registration ID of mouse pattern when into an event, the title of mouse pattern when executing the event or registration ID with And the title or registration ID of the mouse pattern when end event.
Seen from the above description, by one Mono class with life cycle of creation, mouse can be more advantageously realized Mark executes automatic switchover when a certain event, improves the flexibility that mouse uses.
It further, further include the priority of mouse pattern to be registered in the registration request;
The processor realizes following steps when executing the computer program:
When executing switching, if there are multiple mouse patterns available, the mouse pattern of highest priority is selected to carry out Switching;
After the completion of the handover, it executes an event monitoring to adjust back, before the title and switching that return to current mouse pattern The title of mouse pattern.
Seen from the above description, through the setting of mouse pattern priority the case where working there are multiple mouse patterns Can guarantee the smooth switching of mouse pattern down, and by event monitoring readjustment convenient for operation layer identify current mouse pattern into Row Function Extension.
Embodiment one
Please refer to Fig. 1, a kind of mouse modality management method based on Unity, including step:
The switching request of mouse pattern is received, the switching request includes the title of to be switched mouse pattern;
According to the title of the to be switched mouse pattern, corresponding mouse is called from the management class for mouse pattern Pattern, the management class are created by Unity script, are stored with registered and loaded mouse sample in the management class The caching resource and concordance list of formula, the concordance list include registered mouse pattern title and corresponding registration ID;
When executing the switching of mouse pattern, the Mono with life cycle can also be created by Unity script Class, the title or registration ID of mouse pattern when entering an event by the calling setting to the Mono class execute the thing The title or registration ID of mouse pattern when the title or registration ID and the end event of mouse pattern when part, thus real Existing mouse automatically switches mouse pattern when executing a certain event;
Wherein the management class is the singleton management class for mouse pattern, has write mouse pattern in the management class Registration, deletion, switching, the methods of load;
The register method of mouse pattern is specific as follows:
The registration request of mouse pattern is received, the registration request includes the title and resource of mouse pattern to be registered Path;
Whether according to the title of the mouse pattern to be registered, determining has the mouse sample of the title in the management class Formula, if so, prompting the mouse pattern registered, the renewal of registration mouse pattern will fail, if it is not, then according to the resource Path carries out the load of the mouse pattern to be registered, for the mouse pattern distribution registration ID to be registered;
The caching resource of the mouse pattern, the title of the mouse pattern and registration ID are stored to the management Class, the title and registration ID of the mouse pattern correspond;
It further include the priority of mouse pattern to be registered in the registration request;
When executing switching, if there are multiple mouse patterns available, the mouse pattern of highest priority is selected to carry out Switching;
After the completion of the handover, it executes an event monitoring to adjust back, before the title and switching that return to current mouse pattern The title of mouse pattern;
During initializing to the management class, depositing for mouse style configuration file can be detected whether automatically If so, having mouse pattern solid in confirmation configuration file in this way according to the content in certain format loading configuration file It is directly registered in the presence of fixed, to reduce extra code, wherein configuration file type is XML, and the specific format of load is such as Under:
The loading method of mouse pattern is specific as follows:
When receiving the log-in command of mouse pattern, search according to root directory of the resource path to application is Otherwise the no icon file for having the path can search the icon file, if internal resource file in internal resource folder Do not have, then use empty graph piece, that is, the mouse pattern registered does not change the default style, wherein in internal resource folder yet Content cannot be changed after being packaged, and the content in root directory can carry out additions and deletions in the case where obtaining permission, i.e., It can be realized hot more new function, so first being searched in root directory, then search, can be improved in internal resource folder The efficiency of lookup;
The delet method of mouse pattern is specific as follows:
The removal request of mouse pattern is received, the removal request includes the title or registration of mouse pattern to be deleted ID;
Management class is retrieved in concordance list according to the title or registration ID of the mouse pattern to be deleted with the presence or absence of institute Mouse pattern to be deleted is stated, if so, release loads the EMS memory occupation of the mouse pattern to be deleted, and on concordance list Delete the mouse pattern to be deleted title and corresponding registration ID;
Detect whether current mouse pattern is the mouse pattern to be deleted, if so, by current mouse pattern It is forcibly changed into the default style.
Embodiment two
Referring to figure 2., a kind of mouse modality management terminal 1 based on Unity, including memory 2, processor 3 and deposit The computer program that can be run on the memory 2 and on the processor 3 is stored up, the processor 3 executes the calculating Following steps are realized when machine program:
The switching request of mouse pattern is received, the switching request includes the title of to be switched mouse pattern;
According to the title of the to be switched mouse pattern, corresponding mouse is called from the management class for mouse pattern Pattern, the management class are created by Unity script, are stored with registered and loaded mouse sample in the management class The caching resource and concordance list of formula, the concordance list include registered mouse pattern title and corresponding registration ID;
When executing the switching of mouse pattern, the Mono with life cycle can also be created by Unity script Class, the title or registration ID of mouse pattern when entering an event by the calling setting to the Mono class execute the thing The title or registration ID of mouse pattern when the title or registration ID and the end event of mouse pattern when part, thus real Existing mouse automatically switches mouse pattern when executing a certain event;
Wherein the management class is the singleton management class for mouse pattern, has write mouse pattern in the management class Registration, deletion, switching, the methods of load;
Following steps are implemented when executing the registration of mouse pattern:
The registration request of mouse pattern is received, the registration request includes the title and resource of mouse pattern to be registered Path;
Whether according to the title of the mouse pattern to be registered, determining has the mouse sample of the title in the management class Formula, if so, prompting the mouse pattern registered, the renewal of registration mouse pattern will fail, if it is not, then according to the resource Path carries out the load of the mouse pattern to be registered, for the mouse pattern distribution registration ID to be registered;
The caching resource of the mouse pattern, the title of the mouse pattern and registration ID are stored to the management Class, the title and registration ID of the mouse pattern correspond;
It further include the priority of mouse pattern to be registered in the registration request;
When executing switching, if there are multiple mouse patterns available, the mouse pattern of highest priority is selected to carry out Switching;
After the completion of the handover, it executes an event monitoring to adjust back, before the title and switching that return to current mouse pattern The title of mouse pattern;
During initializing to the management class, depositing for mouse style configuration file can be detected whether automatically If so, having mouse pattern solid in confirmation configuration file in this way according to the content in certain format loading configuration file It is directly registered in the presence of fixed, to reduce extra code, wherein configuration file type is XML, and the specific format of load is such as Under:
When executing the load of mouse pattern, following steps are implemented:
When receiving the log-in command of mouse pattern, search according to root directory of the resource path to application is Otherwise the no icon file for having the path can search the icon file, if internal resource file in internal resource folder Do not have, then use empty graph piece, that is, the mouse pattern registered does not change the default style yet;
When executing the deletion of mouse pattern, following steps are implemented:
The removal request of mouse pattern is received, the removal request includes the title or registration of mouse pattern to be deleted ID;
Management class is retrieved in concordance list according to the title or registration ID of the mouse pattern to be deleted with the presence or absence of institute Mouse pattern to be deleted is stated, if so, release loads the EMS memory occupation of the mouse pattern to be deleted, and on concordance list Delete the mouse pattern to be deleted title and corresponding registration ID;
Detect whether current mouse pattern is the mouse pattern to be deleted, if so, by current mouse pattern It is forcibly changed into the default style.
In conclusion the method and terminal of a kind of mouse modality management based on Unity provided by the invention, pass through The creation of Unity script is directed to the management class of mouse pattern, stores registered and loaded mouse sample in the management class The caching resource of formula is realized registration, deletion, the switching of mouse pattern by the management class, realizes the management to mouse pattern, When being related to the operation to mouse pattern, first check in management class whether have the caching resource of related mouse pattern, if so, Corresponding mouse pattern is called directly, without repeating load mouse pattern resource, can preferably manage the caching of mouse pattern Redundancy issue caused by loading is repeated to avoid resource.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalents made by bright specification and accompanying drawing content are applied directly or indirectly in relevant technical field, similarly include In scope of patent protection of the invention.

Claims (10)

1. a kind of mouse modality management method based on Unity, which is characterized in that including step:
The switching request of mouse pattern is received, the switching request includes the title of to be switched mouse pattern;
According to the title of the to be switched mouse pattern, corresponding mouse sample is called from the management class for mouse pattern Formula, the management class are created by Unity script, are stored with registered and loaded mouse pattern in the management class Caching resource and concordance list, the concordance list include registered mouse pattern title and corresponding registration ID.
2. a kind of mouse modality management method based on Unity according to claim 1, which is characterized in that further include step Suddenly:
The registration request of mouse pattern is received, the registration request includes title and the resource road of mouse pattern to be registered Diameter;
Whether according to the title of the mouse pattern to be registered, determining has the mouse pattern of the title in the management class, if It is then to prompt the mouse pattern registered, if it is not, then carrying out the mouse pattern to be registered according to the resource path Load, for the mouse pattern distribution registration ID to be registered;
The caching resource of the mouse pattern, the title of the mouse pattern and registration ID are stored to the management class, institute The title and registration ID for stating mouse pattern correspond.
3. a kind of mouse modality management method based on Unity according to claim 1, which is characterized in that further include step Suddenly:
The removal request of mouse pattern is received, the removal request includes the title or registration ID of mouse pattern to be deleted;
Management class retrieve in concordance list according to the title of the mouse pattern to be deleted or registration ID whether there is described in The mouse pattern of deletion if so, release loads the EMS memory occupation of the mouse pattern to be deleted, and is deleted on concordance list The title of the mouse pattern to be deleted and corresponding registration ID;
Detect whether current mouse pattern is the mouse pattern to be deleted, if so, current mouse pattern is forced It is changed to the default style.
4. a kind of mouse modality management method based on Unity according to claim 1, which is characterized in that further include step Suddenly:
The Mono class with life cycle is created by Unity script, is arranged by the calling to the Mono class and is entered The title of mouse pattern when one event or registration ID, the title of mouse pattern when executing the event or registration ID and knot The title or registration ID of mouse pattern when Shu Suoshu event.
5. a kind of mouse modality management method based on Unity according to claim 2, which is characterized in that the registration It further include the priority of mouse pattern to be registered in request;
When executing switching, if there are multiple mouse patterns available, the mouse pattern of highest priority is selected to switch over;
After the completion of the handover, an event monitoring readjustment is executed, mouse before returning to the title of current mouse pattern and switching The title of pattern.
6. a kind of mouse modality management terminal based on Unity, including memory, processor and it is stored on the memory And the computer program that can be run on the processor, which is characterized in that when the processor executes the computer program Realize following steps:
The switching request of mouse pattern is received, the switching request includes the title of to be switched mouse pattern;
According to the title of the to be switched mouse pattern, corresponding mouse sample is called from the management class for mouse pattern Formula, the management class are created by Unity script, are stored with registered and loaded mouse pattern in the management class Caching resource and concordance list, the concordance list include registered mouse pattern title and corresponding registration ID.
7. a kind of mouse modality management terminal based on Unity according to claim 6, which is characterized in that further include reality Existing step:
The registration request of mouse pattern is received, the registration request includes title and the resource road of mouse pattern to be registered Diameter;
Whether according to the title of the mouse pattern to be registered, determining has the mouse pattern of the title in the management class, if It is then to prompt the mouse pattern registered, if it is not, then carrying out the mouse pattern to be registered according to the resource path Load, for the mouse pattern distribution registration ID to be registered;
The caching resource of the mouse pattern, the title of the mouse pattern and registration ID are stored to the management class, institute The title and registration ID for stating mouse pattern correspond.
8. a kind of mouse modality management terminal based on Unity according to claim 6, which is characterized in that further include reality Existing step:
The removal request of mouse pattern is received, the removal request includes the title or registration ID of mouse pattern to be deleted;
Management class retrieve in concordance list according to the title of the mouse pattern to be deleted or registration ID whether there is described in The mouse pattern of deletion if so, release loads the EMS memory occupation of the mouse pattern to be deleted, and is deleted on concordance list The title of the mouse pattern to be deleted and corresponding registration ID;
Detect whether current mouse pattern is the mouse pattern to be deleted, if so, current mouse pattern is forced It is changed to the default style.
9. a kind of mouse modality management terminal based on Unity according to claim 6, which is characterized in that further include reality Existing step:
The Mono class with life cycle is created by Unity script, is arranged by the calling to the Mono class and is entered The title of mouse pattern when one event or registration ID, the title of mouse pattern when executing the event or registration ID and knot The title or registration ID of mouse pattern when Shu Suoshu event.
10. a kind of mouse modality management terminal based on Unity according to claim 7, which is characterized in that the registration It further include the priority of mouse pattern to be registered in request;
The processor realizes following steps when executing the computer program:
When executing switching, if there are multiple mouse patterns available, the mouse pattern of highest priority is selected to switch over;
After the completion of the handover, an event monitoring readjustment is executed, mouse before returning to the title of current mouse pattern and switching The title of pattern.
CN201810385859.7A 2018-04-26 2018-04-26 A kind of mouse modality management method and terminal based on Unity Pending CN108874391A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810385859.7A CN108874391A (en) 2018-04-26 2018-04-26 A kind of mouse modality management method and terminal based on Unity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810385859.7A CN108874391A (en) 2018-04-26 2018-04-26 A kind of mouse modality management method and terminal based on Unity

Publications (1)

Publication Number Publication Date
CN108874391A true CN108874391A (en) 2018-11-23

Family

ID=64327289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810385859.7A Pending CN108874391A (en) 2018-04-26 2018-04-26 A kind of mouse modality management method and terminal based on Unity

Country Status (1)

Country Link
CN (1) CN108874391A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833631A (en) * 2012-07-30 2012-12-19 深圳市茁壮网络股份有限公司 Page information processing method and set-top box
CN103440127A (en) * 2013-08-19 2013-12-11 中国电子科技集团公司第十五研究所 Software graphical interface drawing method and system
CN106126733A (en) * 2016-07-04 2016-11-16 浪潮(北京)电子信息产业有限公司 A kind of method and system changing CSS style
CN106776964A (en) * 2016-12-05 2017-05-31 国云科技股份有限公司 A kind of WEB page management system and its implementation based on HC CELL

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833631A (en) * 2012-07-30 2012-12-19 深圳市茁壮网络股份有限公司 Page information processing method and set-top box
CN103440127A (en) * 2013-08-19 2013-12-11 中国电子科技集团公司第十五研究所 Software graphical interface drawing method and system
CN106126733A (en) * 2016-07-04 2016-11-16 浪潮(北京)电子信息产业有限公司 A kind of method and system changing CSS style
CN106776964A (en) * 2016-12-05 2017-05-31 国云科技股份有限公司 A kind of WEB page management system and its implementation based on HC CELL

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
狂欢的人: ""unity改变鼠标样式的两种方法"", 《BLOG.CSDN.NET/KHDHZDX/ARTCLE/DETAILS/38314053,》 *

Similar Documents

Publication Publication Date Title
CN104182255B (en) A kind of the library file upgrade method and terminal of system application
CN106201661B (en) Method and apparatus for elastic telescopic cluster virtual machine
CN107247619B (en) Live migration of virtual machine method, apparatus, system, storage medium and equipment
CN104102502B (en) A kind of processing method that realizing heat deployment, device and server
CN107678776A (en) Multimode version dependence construction method, device, server and storage medium
CN103546440B (en) A kind of client initiates the affairs method and system of affairs
CN104866339B (en) Distributed persistence management method, system and the device of FOTA data
CN108399331B (en) Application process trial method and system
CN108268271A (en) The upgrade method and update device of micro services
CN106201613A (en) Preheating software is installed
CN110109649A (en) For container control method, device and the containment system of Web service
CN109857548A (en) Memory space optimization method, device, computer equipment and storage medium
KR101316902B1 (en) Extended JAVA virtual machine for supporting multi-tenancy and Method for processing multi-tenancy using the same
CN107220074A (en) To the access of supporting layer software function, upgrade method and device
CN106095483A (en) The Automation arranging method of service and device
CN114880100A (en) Container dynamic scheduling method and device, computer equipment and storage medium
CN109375961A (en) Application program launching optimization method, device, computer equipment and storage medium
CN104536773B (en) Embedded software dynamic memory recovery method based on internal memory scanning
CN106980537B (en) The method and system of cloud host is deleted in cloud computing environment
CN101493775A (en) Dynamic loading system and loading method thereof for embedded system
CN108874391A (en) A kind of mouse modality management method and terminal based on Unity
CN106095486A (en) Online updating method, system, terminal unit and the server of application program
CN102137122B (en) Method and device for downloading data
CN112799588A (en) Data storage method for loading container cluster application data by using external storage
CN115134238B (en) Business system publishing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181123