CN109731337A - Method and device for creating special effect of particles in Unity, electronic equipment and storage medium - Google Patents
Method and device for creating special effect of particles in Unity, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109731337A CN109731337A CN201811632611.2A CN201811632611A CN109731337A CN 109731337 A CN109731337 A CN 109731337A CN 201811632611 A CN201811632611 A CN 201811632611A CN 109731337 A CN109731337 A CN 109731337A
- Authority
- CN
- China
- Prior art keywords
- particle effect
- played
- resource
- particle
- caching
- 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.)
- Granted
Links
- 239000002245 particle Substances 0.000 title claims abstract description 269
- 230000000694 effects Effects 0.000 title claims abstract description 263
- 238000000034 method Methods 0.000 title claims abstract description 45
- 108010001267 Protein Subunits Proteins 0.000 claims description 3
- 238000012545 processing Methods 0.000 claims description 3
- 230000005611 electricity Effects 0.000 claims 1
- 244000025254 Cannabis sativa Species 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000004590 computer program Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 241000209504 Poaceae Species 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- -1 fire Substances 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000003595 mist Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Processing Or Creating Images (AREA)
Abstract
The embodiment of the invention discloses a method and a device for creating a special particle effect in Unity, electronic equipment and a storage medium, relates to the technical field of games, and is used for improving game fluency. The method for creating the particle special effect in Unity comprises the following steps: obtaining a particle special effect to be played; determining whether particle special effect resources corresponding to the particle special effects to be played exist in a resource cache pool; and if the resource cache pool has the particle special effect resource corresponding to the particle special effect to be played, acquiring the particle special effect resource from the resource cache pool and playing the particle special effect resource at a required position.
Description
Technical field
The present invention relates to particle effect creation method, device, electronics in game technical field more particularly to a kind of Unity
Equipment and storage medium.
Background technique
Unity software is that player is allowed easily to create such as three-dimensional view by one of Unity Technologies company exploitation
The multi-platform comprehensive development of games tool of the types interaction contents such as frequency game, building visualization, realtime three dimensional animation, is one
A professional game engine integrated comprehensively.
To increase picture detail in game, game effect is enriched, it will usually use particle effect, particle effect can be simulated
Water, fire, mist, gas in reality and other effects, principle is so that it is showed fixed form the combination of countless single particles, by control
Device, script control its whole or single movement, simulate true effect.Common particle effect for example can be with are as follows:
Fallen leaves, the bullet that the bullet of game role arm discharge, bullet hits thick grass generate smash special efficacy of object etc..
It creates and plays simultaneously multiple particles special efficacy and be easy to cause game Caton, influence user experience.It is hit and is broadcast with thick grass
For the particle effect (descend slowly and lightly leaf) put, current techniques are, in group attack when thick grass, can first search from cache pool and add in advance
The particle effect example of load simultaneously plays, and can not find, creates and play, though there is cache pool, because bullet velocity is fast, it is easy to
Multiple thick grasses are hit simultaneously, it is necessary to create multiple particles special efficacy example and play, it is thus possible to generate Caton, reduce game flow
Smooth property.
Summary of the invention
In view of this, the embodiment of the present invention provide it is a kind of improve game fluency Unity in particle effect creation method,
Device, electronic equipment and storage medium.
In a first aspect, the embodiment of the present invention provides particle effect creation method in a kind of Unity, comprising:
Obtain particle effect to be played;
Whether determine in caching resource pond has particle effect resource corresponding with the particle effect to be played;
If there is particle effect resource corresponding with the particle effect to be played in the caching resource pond, from described
The particle effect resource is obtained in caching resource pond and is played in required position.
With reference to first aspect, in a kind of embodiment of first aspect, whether have in the determining caching resource pond with
The corresponding particle effect resource of the particle effect to be played, comprising:
Mark can be shared by judging whether the particle effect resource of the particle effect to be played has, wherein described to be total to
Broadcasting can be shared by enjoying mark and being used to indicate particle effect resource;
If the particle effect resource of the particle effect to be played, which has, can share mark, it is determined that the caching resource pond
In whether have particle effect resource corresponding with the particle effect to be played.
With reference to first aspect, in the another embodiment of first aspect, whether have in the determining caching resource pond
Particle effect resource corresponding with the particle effect to be played, comprising:
If the particle effect resource of the particle effect to be played can not share mark, it is determined that in caching resource pond
Whether the example of the to be played particle effect is had;
If there is the example of the particle effect to be played in the caching resource pond, the particle to be played is played
The example of special efficacy creates described to be played if not having the example of the particle effect to be played in the caching resource pond
Particle effect example and required position play.
With reference to first aspect, in the another embodiment of first aspect, if not having in caching resource pond
The example of the particle effect to be played then creates the example of the particle effect to be played and plays in required position,
Include:
The particle effect resource of the example of the particle effect to be played of creation is stored in the caching resource pond
In.
Second aspect, the embodiment of the present invention provide particle effect creating device in a kind of Unity, comprising:
Module is obtained, for obtaining particle effect to be played;
Determining module, for determining in caching resource pond whether have particle corresponding with the particle effect to be played special
Imitate resource;
Acquisition and playing module, if for there is grain corresponding with the particle effect to be played in the caching resource pond
Sub- special efficacy resource then obtains the particle effect resource from the caching resource pond and plays in required position.
In conjunction with second aspect, in a kind of embodiment of second aspect, the determining module, comprising:
Judging submodule can share mark for judging whether the particle effect resource of the particle effect to be played has
Know, wherein it is described share mark and be used to indicate particle effect resource can share broadcasting;
First determines submodule, if the particle effect resource for the particle effect to be played, which has, can share mark,
Whether then determine has particle effect resource corresponding with the particle effect to be played in the caching resource pond.
In conjunction with second aspect, in the another embodiment of second aspect, the determining module, comprising:
Second determines submodule, if the particle effect resource for the particle effect to be played can not share mark
Know, it is determined that whether have the example of the particle effect to be played in the caching resource pond;
Submodule is played, if playing for there is the example of the particle effect to be played in the caching resource pond
The example of the particle effect to be played, if there is no the example of the particle effect to be played in the caching resource pond,
It then creates the example of the particle effect to be played and is played in required position.
In conjunction with second aspect, in the another embodiment of second aspect, the broadcasting submodule, comprising:
Storing sub-units, for the particle effect resource of the example of the particle effect to be played of creation to be stored in
In the caching resource pond.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, and the electronic equipment includes: shell, processor, deposits
Reservoir, circuit board and power circuit, wherein circuit board is placed in the space interior that shell surrounds, processor and memory setting
On circuit boards;Power circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is for storing and can hold
Line program code;Processor is run and executable program code pair by reading the executable program code stored in memory
The program answered, for executing aforementioned any method.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, the computer-readable storage
Media storage has one or more program, and one or more of programs can be executed by one or more processor, with
Realize aforementioned any method.
Particle effect creation method, device, electronic equipment and storage medium in Unity provided in an embodiment of the present invention, it is first
Particle effect to be played is first obtained, then whether is had in determining caching resource pond corresponding with the particle effect to be played
Particle effect resource, if thering is particle effect corresponding with the particle effect to be played to provide in the last caching resource pond
Source then obtains the particle effect resource from the caching resource pond and plays in required position.In this way, by determining resource
Whether with the to be played particle effect corresponding particle effect resource is had in cache pool, it is special hence for identical particle
Effect can be shared using corresponding particle effect resource, without creating numerous particle effect examples, greatly reduce particle effect reality
The creation quantity of example, reduces the occupancy of CPU and memory, game fluency is greatly improved.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow diagram of particle effect creation method one embodiment in Unity of the invention;
Fig. 2 is the flow diagram of step 102 in embodiment of the method shown in Fig. 1;
Fig. 3 is the structural schematic diagram of particle effect creating device one embodiment in Unity of the invention;
Fig. 4 is the structural schematic diagram of determining module 12 in Fig. 3 shown device embodiment;
Fig. 5 is the structural schematic diagram of electronic equipment one embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
Its embodiment, shall fall within the protection scope of the present invention.
On the one hand, the embodiment of the present invention provides particle effect creation method in a kind of Unity, as shown in Figure 1, the present embodiment
Method may include:
Step 101: obtaining particle effect to be played;
In game process, if triggering event (the triggering mode such as game role release skill with particle effect
Energy, game role arm discharge bullet, bullet hits thick grass generate fallen leaves, bullet smashes object etc.), then it needs in corresponding position
(such as on technical ability releasing position, bullet flight path, thick grass fallen leaves position, at broken object) play particle effect, at this time
According to the event, particle effect to be played can be obtained.
Step 102, whether: determining in caching resource pond has particle effect corresponding with the particle effect to be played to provide
Source;
Inventor has found in the course of the research, for identical particle effect, can share particle effect resource to play
Corresponding particle effect, such as by taking the leaf particle effect that descends slowly and lightly that bullet hits thick grass generates as an example, in the prior art not directly
Shared particle effect resource, but clone's one particle effect example of creation is required to for each leaf particle effect that descends slowly and lightly, such as
It is preloaded with the particle effect example in fruit cache pool, then directly plays the particle effect, if without the pre-loaded grain
Sub- special efficacy example then needs to create and play;Although there is cache pool, the speed of service is improved to a certain extent, due to slow
The reasons such as the space for depositing pond is limited, which not necessarily can be triggered and play, and not all particle effect example all can
It is pre-loaded in cache pool;In addition, bullet velocity is very fast, it is easy to while multiple thick grasses are hit, and game role may
There are more people, all transmit bullet and be fired upon thick grass, just need to create large number of particle effect example at this time and plays, because
There may be Catons for this, reduce game fluency.
And in the embodiment of the present invention, it is corresponding with the particle effect to be played by whether having in determining caching resource pond
Particle effect resource can use corresponding particle effect resource subsequent step is shared hence for identical particle effect,
Without creating numerous particle effect examples, the creation quantity of particle effect example is greatly reduced, reduces accounting for for CPU and memory
With game fluency is greatly improved.Wherein, particle effect resource refers to resource used in particle effect example, including particle
Material, textures, each attribute etc..
As a kind of optional embodiment, as shown in Fig. 2, whether have in the determining caching resource pond with it is described to be played
The corresponding particle effect resource (step 102) of particle effect, may include:
Step 1021: mark can be shared by judging whether the particle effect resource of the particle effect to be played has, wherein
It is described share mark and be used to indicate particle effect resource can share broadcasting;
In this step, the particle effect of broadcasting can be shared for particle effect resource, can be provided in advance in its particle effect
Mark can be shared by adding on source, this, which can share mark, flexibly to arrange as needed, either numerical value, is also possible to letter,
Such as it indicates that broadcasting can be shared with numerical value O, or indicate that broadcasting can be shared with alphabetical Y;It cannot simultaneously for particle effect resource
The shared particle effect played, can not add mark or add can not share mark, this can not share mark for example with number
The expression of value 1 can not share broadcasting, or indicate that broadcasting can not be shared with alphabetical N.
Step 1022: if the particle effect resource of the particle effect to be played, which has, can share mark, it is determined that described
Whether with the to be played particle effect corresponding particle effect resource is had in caching resource pond.
In this way, mark can be shared according to whether the particle effect resource of particle effect to be played has, can quickly learn
Whether the corresponding particle effect resource of the particle effect to be played can share broadcasting, when that can share broadcasting, then go resource
Corresponding particle effect resource has been searched whether in cache pool, it is when broadcasting can not be shared, then corresponding without having searched whether
Particle effect resource, to improve operational efficiency.
As further alternative embodiment, as shown in Fig. 2, whether having with described in the determining caching resource pond wait broadcast
The corresponding particle effect resource (step 102) of the particle effect put can also include:
Step 1023: if the particle effect resource of the particle effect to be played can not share mark, it is determined that institute
The example for whether having the particle effect to be played in caching resource pond stated;
Step 1024: if there is the example of the particle effect to be played in the caching resource pond, play it is described to
The example of the particle effect of broadcasting creates if not having the example of the particle effect to be played in the caching resource pond
The example of the particle effect to be played is simultaneously played in required position.
In this way, illustrating particle effect if the particle effect resource of the particle effect to be played can not share mark
Resource can not share broadcasting, then can according to the prior art, judge whether to be pre-loaded in the caching resource pond it is described to
The example of the particle effect of broadcasting, if nothing, is created and is played if so, then playing the example.
Further, it if there is no the example of the particle effect to be played in caching resource pond, creates
The example of the particle effect to be played is simultaneously played in required position, may include:
The particle effect resource of the example of the particle effect to be played of creation is stored in the caching resource pond
In.
Example due to having created particle effect to be played, produces particle effect resource in caching, therefore can will
The particle effect resource is stored in caching resource pond, is provided in order to which subsequent identical particle effect is shared using the particle effect
Source.
Step 103: if there is particle effect resource corresponding with the particle effect to be played in the caching resource pond,
The particle effect resource is then obtained from the caching resource pond and is played in required position.
In this step, if there is the corresponding particle effect resource of the particle effect to be played in the caching resource pond,
Need clone's creation particle effect example different from the prior art, the embodiment of the present invention is not necessarily to create particle effect example, but
The particle effect resource is obtained from the caching resource pond and is played in required position.Since herein is in new positions
Particle effect is replayed in (original play position relative to particle effect resource), the effect is realized for convenience, can call
API (Application Programming Interface, application programming interface) interface of particIe system, makes particle
Special efficacy plays on required position.The api interface can be for example ParticleSystem.Emit (int count), specifically may be used
Reference link: https: //docs.unity3d.com/ScriptReference/ParticleSystem.Emit.htm l.
It should be noted that in the embodiment of the present invention, what particle effect preferably disposably played, it will not recycle, also not
The particle effect that can be terminated in broadcasting, accounting is larger (70% or so) in gaming for such particle effect, and often
Need to create multiple particles special efficacy example simultaneously, particle effect Resource Sharing Technology through the embodiment of the present invention can be very big
Improve game fluency.Comparatively, some particle effects may need circulation continuous to play (such as effect of raining), or meeting
(such as the big trick of Wang Zhaojun can be interrupted in king's honor game) is terminated in broadcasting, for both particle effects,
Quantity is relatively fewer, usually there is no needing while the case where create multiple particles special efficacy example, therefore can not use temporarily
The scheme (or added in its particle effect resource can not share mark) of the embodiment of the present invention.
Particle effect creation method in Unity provided in an embodiment of the present invention, obtains particle effect to be played, so first
Determine in caching resource pond whether there is particle effect resource corresponding with the particle effect to be played afterwards, if the last money
There is particle effect resource corresponding with the particle effect to be played in source cache pond, is then obtained from the caching resource pond
The particle effect resource is simultaneously played in required position.In this way, by determine caching resource pond in whether have with it is described to be played
The corresponding particle effect resource of particle effect can share and use corresponding particle effect hence for identical particle effect
Resource greatly reduces the creation quantity of particle effect example without creating numerous particle effect examples, reduces CPU and interior
Game fluency is greatly improved in the occupancy deposited.
On the other hand, the embodiment of the present invention provides particle effect creating device in a kind of Unity, as shown in figure 3, the device
May include:
Module 11 is obtained, for obtaining particle effect to be played;
Determining module 12, for determining in caching resource pond whether there is particle corresponding with the particle effect to be played
Special efficacy resource;
Acquisition and playing module 13, if corresponding with the particle effect to be played for having in the caching resource pond
Particle effect resource then obtains the particle effect resource from the caching resource pond and plays in required position.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 1, realization principle and skill
Art effect is similar, and details are not described herein again.
Preferably, as shown in figure 4, the determining module 12, may include:
Judging submodule 121, for judging whether the particle effect resource of the particle effect to be played has and can share
Mark, wherein it is described share mark and be used to indicate particle effect resource can share broadcasting;
First determines submodule 122, if the particle effect resource for the particle effect to be played, which has, can share mark
Know, it is determined that whether have particle effect resource corresponding with the particle effect to be played in the caching resource pond.
Preferably, as shown in figure 4, the determining module 12, can also include:
Second determines submodule 123, if the particle effect resource for the particle effect to be played can not shared
Mark, it is determined that whether have the example of the particle effect to be played in the caching resource pond;
Submodule 124 is played, if broadcasting for there is the example of the particle effect to be played in the caching resource pond
The example for putting the particle effect to be played, if not having the reality of the particle effect to be played in the caching resource pond
Example then creates the example of the particle effect to be played and plays in required position.
Preferably, the broadcasting submodule 124 may include:
Storing sub-units, for the particle effect resource of the example of the particle effect to be played of creation to be stored in
In the caching resource pond.
The embodiment of the present invention also provides a kind of electronic equipment, and Fig. 5 is the structure of electronic equipment one embodiment of the invention
The process of Fig. 1-2 illustrated embodiment of the present invention may be implemented in schematic diagram, as shown in figure 5, above-mentioned electronic equipment may include: shell
Body 41, processor 42, memory 43, circuit board 44 and power circuit 45, wherein circuit board 44 is placed in the sky that shell 41 surrounds
Between it is internal, processor 42 and memory 43 are arranged on circuit board 44;Power circuit 45, for for each of above-mentioned electronic equipment
Circuit or device power supply;Memory 43 is for storing executable program code;Processor 42 is stored by reading in memory 43
Executable program code run program corresponding with executable program code, for executing aforementioned either method embodiment institute
The method stated.
Processor 42 to the specific implementation procedures of above-mentioned steps and processor 42 by operation executable program code come
The step of further executing may refer to the description of Fig. 1-2 illustrated embodiment of the present invention, and details are not described herein.
The electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data
Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low
Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function
Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio,
Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy
Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic equipments with data interaction function.
The embodiment of the present invention also provides a kind of computer readable storage medium, storage in the computer readable storage medium
There is computer program, the computer program realizes that method described in any of the above-described embodiment of the method walks when being executed by processor
Suddenly.
The embodiment of the present invention also provides a kind of application program, the application program be performed with realize the present invention either one
The method that method embodiment provides.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence " including one ... ", it is not excluded that
There is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.For convenience of description, description apparatus above is to be divided into various units/modules with function to describe respectively.
Certainly, each unit/module function can be realized in the same or multiple software and or hardware in carrying out the present invention.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (10)
1. particle effect creation method in a kind of Unity characterized by comprising
Obtain particle effect to be played;
Whether determine in caching resource pond has particle effect resource corresponding with the particle effect to be played;
If having particle effect resource corresponding with the particle effect to be played in the caching resource pond, from the resource
The particle effect resource is obtained in cache pool and is played in required position.
2. particle effect creation method in Unity according to claim 1, which is characterized in that the determining caching resource
Whether with the to be played particle effect corresponding particle effect resource is had in pond, comprising:
Mark can be shared by judging whether the particle effect resource of the particle effect to be played has, wherein described to share mark
Knowledge, which is used to indicate particle effect resource, can share broadcasting;
If the particle effect resource of the particle effect to be played, which has, can share mark, it is determined that be in the caching resource pond
It is no to have particle effect resource corresponding with the particle effect to be played.
3. particle effect creation method in Unity according to claim 2, which is characterized in that the determining caching resource
Whether with the to be played particle effect corresponding particle effect resource is had in pond, comprising:
If the particle effect resource of the particle effect to be played can not share mark, it is determined that in the caching resource pond
Whether the example of the to be played particle effect is had;
If there is the example of the particle effect to be played in the caching resource pond, the particle effect to be played is played
Example create the grain to be played if there is no the example of the particle effect to be played in the caching resource pond
The example of sub- special efficacy is simultaneously played in required position.
4. particle effect creation method in Unity according to claim 3, which is characterized in that if the resource is slow
The example for not having the particle effect to be played in pond is deposited, then creates the example of the particle effect to be played and required
Position plays, comprising:
The particle effect resource of the example of the particle effect to be played of creation is stored in the caching resource pond.
5. particle effect creating device in a kind of Unity characterized by comprising
Module is obtained, for obtaining particle effect to be played;
Determining module, for determining in caching resource pond whether there is particle effect corresponding with the particle effect to be played to provide
Source;
Acquisition and playing module, if for there is particle corresponding with the particle effect to be played special in the caching resource pond
Resource is imitated, then obtain the particle effect resource from the caching resource pond and is played in required position.
6. particle effect creating device in Unity according to claim 5, which is characterized in that the determining module, packet
It includes:
Judging submodule can share mark for judging whether the particle effect resource of the particle effect to be played has,
In, it is described share mark and be used to indicate particle effect resource can share broadcasting;
First determines submodule, if the particle effect resource for the particle effect to be played, which has, can share mark, really
Whether there is particle effect resource corresponding with the particle effect to be played in the fixed caching resource pond.
7. particle effect creating device in Unity according to claim 6, which is characterized in that the determining module, packet
It includes:
Second determines submodule, if the particle effect resource for the particle effect to be played can not share mark,
The example for whether having the particle effect to be played in the caching resource pond determined;
Play submodule, if for there is the example of the particle effect to be played in the caching resource pond, play described in
The example of particle effect to be played is created if not having the example of the particle effect to be played in the caching resource pond
It builds the example of the particle effect to be played and is played in required position.
8. particle effect creating device in Unity according to claim 7, which is characterized in that the broadcasting submodule, packet
It includes:
Storing sub-units, it is described for the particle effect resource of the example of the particle effect to be played of creation to be stored in
In caching resource pond.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes: shell, processor, memory, circuit board and electricity
Source circuit, wherein circuit board is placed in the space interior that shell surrounds, and processor and memory setting are on circuit boards;Power supply
Circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is for storing executable program code;Processing
Device runs program corresponding with executable program code by reading the executable program code stored in memory, for holding
Any method of row the claims 1-4.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or
Multiple programs, one or more of programs can be executed by one or more processor, to realize the claims 1-4
Any method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811632611.2A CN109731337B (en) | 2018-12-28 | 2018-12-28 | Method and device for creating special effect of particles in Unity, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811632611.2A CN109731337B (en) | 2018-12-28 | 2018-12-28 | Method and device for creating special effect of particles in Unity, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109731337A true CN109731337A (en) | 2019-05-10 |
| CN109731337B CN109731337B (en) | 2023-02-21 |
Family
ID=66362189
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811632611.2A Active CN109731337B (en) | 2018-12-28 | 2018-12-28 | Method and device for creating special effect of particles in Unity, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109731337B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111013143A (en) * | 2019-12-05 | 2020-04-17 | 北京像素软件科技股份有限公司 | Method and device for optimizing quantity of special effect particles |
| CN111124579A (en) * | 2019-12-24 | 2020-05-08 | 北京金山安全软件有限公司 | Special effect rendering method and device, electronic equipment and storage medium |
| CN112717375A (en) * | 2021-01-04 | 2021-04-30 | 厦门梦加网络科技股份有限公司 | Game special effect realization method |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101325777A (en) * | 2008-07-28 | 2008-12-17 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal as well as application message display process, apparatus and system thereof |
| US20090083015A1 (en) * | 2007-09-24 | 2009-03-26 | Siemens Corporate Research, Inc | Particle System Architecture in a Multi-Body Physics Simulation |
| CN104503795A (en) * | 2014-12-25 | 2015-04-08 | 上海恺英网络科技有限公司 | Method for increasing loading speed of Unity3d bone animation plug-in SmoothMoves |
| CN106060655A (en) * | 2016-08-04 | 2016-10-26 | 腾讯科技(深圳)有限公司 | Video processing method, server and terminal |
| CN106807087A (en) * | 2017-01-23 | 2017-06-09 | 腾讯科技(深圳)有限公司 | The method and mobile terminal of simulated object treatment in a kind of application |
| CN107154068A (en) * | 2017-05-11 | 2017-09-12 | 腾讯科技(深圳)有限公司 | A kind of animation producing method, device, client and computer-readable recording medium |
| CN107333145A (en) * | 2017-07-04 | 2017-11-07 | 武汉斗鱼网络科技有限公司 | A kind of virtual gift display method and device |
| CN108429768A (en) * | 2018-05-29 | 2018-08-21 | 新华三云计算技术有限公司 | Cloud data analysis service management system, method and cloud server |
| CN108986227A (en) * | 2018-06-28 | 2018-12-11 | 北京市商汤科技开发有限公司 | The generation of particle effect program file packet and particle effect generation method and device |
| CN108986017A (en) * | 2018-06-29 | 2018-12-11 | 北京微播视界科技有限公司 | Image special effect processing method, device and computer readable storage medium |
-
2018
- 2018-12-28 CN CN201811632611.2A patent/CN109731337B/en active Active
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090083015A1 (en) * | 2007-09-24 | 2009-03-26 | Siemens Corporate Research, Inc | Particle System Architecture in a Multi-Body Physics Simulation |
| CN101325777A (en) * | 2008-07-28 | 2008-12-17 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal as well as application message display process, apparatus and system thereof |
| CN104503795A (en) * | 2014-12-25 | 2015-04-08 | 上海恺英网络科技有限公司 | Method for increasing loading speed of Unity3d bone animation plug-in SmoothMoves |
| CN106060655A (en) * | 2016-08-04 | 2016-10-26 | 腾讯科技(深圳)有限公司 | Video processing method, server and terminal |
| CN106807087A (en) * | 2017-01-23 | 2017-06-09 | 腾讯科技(深圳)有限公司 | The method and mobile terminal of simulated object treatment in a kind of application |
| CN107154068A (en) * | 2017-05-11 | 2017-09-12 | 腾讯科技(深圳)有限公司 | A kind of animation producing method, device, client and computer-readable recording medium |
| CN107333145A (en) * | 2017-07-04 | 2017-11-07 | 武汉斗鱼网络科技有限公司 | A kind of virtual gift display method and device |
| CN108429768A (en) * | 2018-05-29 | 2018-08-21 | 新华三云计算技术有限公司 | Cloud data analysis service management system, method and cloud server |
| CN108986227A (en) * | 2018-06-28 | 2018-12-11 | 北京市商汤科技开发有限公司 | The generation of particle effect program file packet and particle effect generation method and device |
| CN108986017A (en) * | 2018-06-29 | 2018-12-11 | 北京微播视界科技有限公司 | Image special effect processing method, device and computer readable storage medium |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111013143A (en) * | 2019-12-05 | 2020-04-17 | 北京像素软件科技股份有限公司 | Method and device for optimizing quantity of special effect particles |
| CN111013143B (en) * | 2019-12-05 | 2023-08-29 | 北京像素软件科技股份有限公司 | Method and device for optimizing special effect particle quantity |
| CN111124579A (en) * | 2019-12-24 | 2020-05-08 | 北京金山安全软件有限公司 | Special effect rendering method and device, electronic equipment and storage medium |
| CN111124579B (en) * | 2019-12-24 | 2023-12-19 | 北京金山安全软件有限公司 | Special effect rendering method and device, electronic equipment and storage medium |
| CN112717375A (en) * | 2021-01-04 | 2021-04-30 | 厦门梦加网络科技股份有限公司 | Game special effect realization method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109731337B (en) | 2023-02-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10258871B2 (en) | Method and device for generating sounds effects for a game | |
| CN111275797B (en) | Animation display method, device, equipment and storage medium | |
| CN100514342C (en) | Automatic generating method and apparatus for RPG game scene path | |
| WO2022242021A1 (en) | Message sending method and apparatus for multiplayer online battle program, and terminal and medium | |
| CN110860087B (en) | Virtual object control method, device and storage medium | |
| CN109731337A (en) | Method and device for creating special effect of particles in Unity, electronic equipment and storage medium | |
| WO2023029900A1 (en) | Video frame rendering method and apparatus, device, and storage medium | |
| JP7746565B2 (en) | Contest pop-up window display method, device, equipment, and program | |
| CN114225406B (en) | Virtual prop control method, device, computer equipment and storage medium | |
| WO2021168619A1 (en) | Information pushing method and apparatus, electronic device, and computer readable medium | |
| CN112791395A (en) | Method for providing close-range large-escape game and server using same | |
| CN111298432B (en) | Virtual object information acquisition method and device, server and readable storage medium | |
| WO2024109365A1 (en) | Virtual object control method and apparatus, and device, medium and product | |
| WO2024093608A1 (en) | Game interaction method and apparatus, and device and computer-readable storage medium | |
| CN116983638A (en) | Virtual object interaction method, device, equipment, storage medium and program product | |
| CN111035926B (en) | Virtual object control method, device and storage medium | |
| CN117398687A (en) | Application method and device of interactive prop, terminal and storage medium | |
| CN114210062B (en) | Virtual prop using method, device, terminal, storage medium and program product | |
| US20250153046A1 (en) | Item selection method and apparatus in virtual environment, device, and medium | |
| CN117636887A (en) | Voice sound changing method, device, terminal, storage medium and program product | |
| CN118860123A (en) | Video playback method, device, equipment and storage medium based on cloud gaming | |
| CN117599419A (en) | Method, device, system and program product for displaying virtual wall in virtual scene | |
| CN118681207A (en) | Interactive methods, devices, equipment, media and products based on virtual props | |
| Nguyen | Developing a 3D zombie survival run game with Unity | |
| HK40024081A (en) | Method and apparatus for displaying animation, device 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 | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20200927 Address after: No.2202, 1st floor, building 2, No.7 Shixing street, Shijingshan District, Beijing 100041 (cluster registration) Applicant after: Super magic cube (Beijing) Technology Co.,Ltd. Address before: 100085 Beijing City, Haidian District Road 33, two floor East Xiaoying Applicant before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd. |
|
| TA01 | Transfer of patent application right | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |