44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
URL: https://wiki.studiominus.nl/internalReference/EnergySwordMotionBlur.html
|
|
Title: People Playground Modding - EnergySwordMotionBlur
|
|
==================================================
|
|
|
|
public class EnergySwordMotionBlur
|
|
Inherits MonoBehaviour
|
|
Controls the energy sword trail
|
|
Nested types
|
|
EnergySwordMotionBlur.Node
|
|
Fields
|
|
public MeshRenderer MeshRenderer
|
|
[SkipSerialisation]
|
|
Reference to the MeshRenderer that will be used
|
|
|
|
public MeshFilter MeshFilter
|
|
[SkipSerialisation]
|
|
Reference to the MeshFilter that will be used
|
|
|
|
public float Life
|
|
[SkipSerialisation]
|
|
The length of the trail
|
|
|
|
public float MinDistance
|
|
[SkipSerialisation]
|
|
The minimum distance the blade needs to move in order to create a new node
|
|
|
|
public Rigidbody2D Rigidbody
|
|
[SkipSerialisation]
|
|
Reference to the relevant rigidbody
|
|
|
|
public Transform B
|
|
[SkipSerialisation]
|
|
The two transforms that indicate the line segment that needs to have a trail following it
|
|
|
|
public Gradient ColorOverMesh
|
|
[SkipSerialisation]
|
|
The colour of the mesh over the length
|
|
|
|
public bool SendToBottomLayer
|
|
[Space]
|
|
Puts the blur mesh into the bottom sorting layer
|
|
|
|
public bool MakeBottomColorTransparent
|
|
Makes the bottom colors of the mesh transparent. I added this for the sword. I hate this. |