当前位置:网站首页>Unity technical manual - shape sub module - Sprite, spriterenderer and velocity over lifetime

Unity technical manual - shape sub module - Sprite, spriterenderer and velocity over lifetime

2022-06-23 10:26:00 sesame seeds

Share previous articles

This article is about 3.1 Thousand characters , Novice reading needs 11 minute , Review needs 3 minute Collect at any time, no longer get lost

About author

as everyone knows , Life is a long process , constantly overcome difficulties , Constantly reflect on the process of progress . In this process, there will be a lot of questions and thoughts about life , So I decided to put my thinking , Share all your experiences and stories , To find resonance !!!
Focus on Android/Unity And various game development skills , as well as Share various resources ( Website 、 Tools 、 material 、 Source code 、 Games etc. )
If you need anything, welcome me , Communication groups make learning No longer alone .

 Insert picture description here

Premise

This is what Xiao Kong insisted on writing Unity Novice series , Welcome to taste .

Novice (√√√)

bosses (√)
The particle section is a series of articles , And the introduction was very detailed , Suggest Collection .

Practice process

Sprite、SpriteRenderer

Sprite: from Inspector The sprite material shapes provided in emit particles .

SpriteRenderer: From the referenced GameObject sprite renderer in (Sprite Renderer) Emission particle .

Type: Specify where to emit particles . If you choose Vertex It means that particles are emitted from the vertex , Edge It means that particles are emitted from the edge , Triangle It means that particles are emitted from the triangle . By default , Here is Vertex.

Normal Offset: How far from the surface of the sprite does it emit particles ( In the direction of the surface normal )

Other attributes work the same as those of the sphere , The article is in :https://juejin.cn/post/7107415779007528968.

Circle circular 、Edge edge 、Rectangle rectangular

All properties are in https://zhima.blog.csdn.net/article/details/125360978 There are introductions , Attributes have the same effect , Don't repeat it too much .

Life cycle speed (Velocity over Lifetime) Sub module

image.png

Linear X, Y, Z: Indicates that the particle is in X Axis 、Y Axis and Z Linear velocity on the shaft .

Space: Appoint Linear Of X Axis , Y Axis , Z Whether the axis refers to local space or world space .

Orbital X, Y, Z: Particle surround X Axis 、Y Axis and Z The speed at which the orbit of the shaft rotates .

Offset X, Y, Z: Location from track center , Particles suitable for orbital motion .

Orbital and Offset The combination can achieve a tornado like particle effect , without Radial Is a cylindrical rotating particle with the same radius , If there is Radial The attribute is the upper large and lower small cone rotation , More like a tornado .

Radial: The official translation is that particles are far away from / Radial velocity towards the center , In fact, you can see by setting a value , The farther away from the launch point, the larger the radius , Like a tornado up and down .

Speed Modifier: In the current direction of travel / The velocity of the surrounding particles is multiplied by the value of the attribute .

The above attribute values basically support constant values , From the rightmost inverted triangle in the figure, you can switch , Curve change ( Visual single curve editing ), Numerical range ( More than how much - Less than how much ), Hyperbolic interval value ( Visual hyperbolic editing ).

other

author : Xiaokong and Xiaozhi Xiaokong
Reprint note - Be sure to indicate the source :https://zhima.blog.csdn.net/
This Taoist friend, please Step back ️, I watch you Extraordinary bearing , There is a king's domineering spirit in his speech , There will be a great achievement in the future !!! There is give the thumbs-up Collection Today I tell you , Have you ordered it , Your success in the future ️, I don't take a penny , If it doesn't work ️, Or come back to me .

reminder Click the card below to get more unexpected resources .
 Mr. Kong Ming

原网站

版权声明
本文为[sesame seeds]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206230945573069.html