Show / Hide Table of Contents

Class TrailRenderer

Inheritance
Object
Object
Component
Renderer
TrailRenderer
Inherited Members
Renderer.motionVectors
Renderer.useLightProbes
Renderer.bounds
Renderer.HasPropertyBlock()
Renderer.SetPropertyBlock(MaterialPropertyBlock)
Renderer.SetPropertyBlock(MaterialPropertyBlock, Int32)
Renderer.GetPropertyBlock(MaterialPropertyBlock)
Renderer.GetPropertyBlock(MaterialPropertyBlock, Int32)
Renderer.enabled
Renderer.isVisible
Renderer.shadowCastingMode
Renderer.receiveShadows
Renderer.motionVectorGenerationMode
Renderer.lightProbeUsage
Renderer.reflectionProbeUsage
Renderer.renderingLayerMask
Renderer.rendererPriority
Renderer.sortingLayerName
Renderer.sortingLayerID
Renderer.sortingOrder
Renderer.allowOcclusionWhenDynamic
Renderer.isPartOfStaticBatch
Renderer.worldToLocalMatrix
Renderer.localToWorldMatrix
Renderer.lightProbeProxyVolumeOverride
Renderer.probeAnchor
Renderer.lightmapIndex
Renderer.realtimeLightmapIndex
Renderer.lightmapScaleOffset
Renderer.realtimeLightmapScaleOffset
Renderer.materials
Renderer.material
Renderer.sharedMaterial
Renderer.sharedMaterials
Renderer.GetMaterials(List<Material>)
Renderer.GetSharedMaterials(List<Material>)
Renderer.GetClosestReflectionProbes(List<ReflectionProbeBlendInfo>)
Component.transform
Component.gameObject
Component.GetComponent(Type)
Component.GetComponent<T>()
Component.GetComponent(String)
Component.GetComponentInChildren(Type, Boolean)
Component.GetComponentInChildren(Type)
Component.GetComponentInChildren<T>(Boolean)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren(Type, Boolean)
Component.GetComponentsInChildren(Type)
Component.GetComponentsInChildren<T>(Boolean)
Component.GetComponentsInChildren<T>(Boolean, List<T>)
Component.GetComponentsInChildren<T>()
Component.GetComponentsInChildren<T>(List<T>)
Component.GetComponentInParent(Type)
Component.GetComponentInParent<T>()
Component.GetComponentsInParent(Type, Boolean)
Component.GetComponentsInParent(Type)
Component.GetComponentsInParent<T>(Boolean)
Component.GetComponentsInParent<T>(Boolean, List<T>)
Component.GetComponentsInParent<T>()
Component.GetComponents(Type)
Component.GetComponents(Type, List<Component>)
Component.GetComponents<T>(List<T>)
Component.tag
Component.GetComponents<T>()
Component.CompareTag(String)
Component.SendMessageUpwards(String, Object, SendMessageOptions)
Component.SendMessageUpwards(String, Object)
Component.SendMessageUpwards(String)
Component.SendMessageUpwards(String, SendMessageOptions)
Component.SendMessage(String, Object)
Component.SendMessage(String)
Component.SendMessage(String, Object, SendMessageOptions)
Component.SendMessage(String, SendMessageOptions)
Component.BroadcastMessage(String, Object, SendMessageOptions)
Component.BroadcastMessage(String, Object)
Component.BroadcastMessage(String)
Component.BroadcastMessage(String, SendMessageOptions)
Object.GetInstanceID()
Object.GetHashCode()
Object.Equals(Object)
Object.name
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate(Object, Transform, Boolean)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Instantiate<T>(T, Transform, Boolean)
Object.Destroy(Object, Single)
Object.Destroy(Object)
Object.DestroyImmediate(Object, Boolean)
Object.DestroyImmediate(Object)
Object.FindObjectsOfType(Type)
Object.DontDestroyOnLoad(Object)
Object.hideFlags
Object.DestroyObject(Object, Single)
Object.DestroyObject(Object)
Object.FindSceneObjectsOfType(Type)
Object.FindObjectsOfTypeIncludingAssets(Type)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.FindObjectsOfTypeAll(Type)
Object.FindObjectOfType(Type)
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public sealed class TrailRenderer : Renderer

Properties

alignment

Declaration
public LineAlignment alignment { get; set; }
Property Value
Type Description
LineAlignment

autodestruct

Declaration
public bool autodestruct { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

colorGradient

Declaration
public Gradient colorGradient { get; set; }
Property Value
Type Description
Gradient

emitting

Declaration
public bool emitting { get; set; }
Property Value
Type Description
Boolean

endColor

Declaration
public Color endColor { get; set; }
Property Value
Type Description
Color

endWidth

Declaration
public float endWidth { get; set; }
Property Value
Type Description
Single

generateLightingData

Declaration
public bool generateLightingData { get; set; }
Property Value
Type Description
Boolean

minVertexDistance

Declaration
public float minVertexDistance { get; set; }
Property Value
Type Description
Single

numCapVertices

Declaration
public int numCapVertices { get; set; }
Property Value
Type Description
Int32

numCornerVertices

Declaration
public int numCornerVertices { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

numPositions

Declaration
[Obsolete("Use positionCount instead (UnityUpgradable) -> positionCount", false)]
public int numPositions { get; }
Property Value
Type Description
Int32

positionCount

Declaration
public int positionCount { get; }
Property Value
Type Description
Int32

shadowBias

Declaration
public float shadowBias { get; set; }
Property Value
Type Description
Single

startColor

Declaration
public Color startColor { get; set; }
Property Value
Type Description
Color

startWidth

Declaration
public float startWidth { get; set; }
Property Value
Type Description
Single

textureMode

Declaration
public LineTextureMode textureMode { get; set; }
Property Value
Type Description
LineTextureMode

time

Declaration
public float time { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

widthCurve

Declaration
public AnimationCurve widthCurve { get; set; }
Property Value
Type Description
AnimationCurve

widthMultiplier

Declaration
public float widthMultiplier { get; set; }
Property Value
Type Description
Single

Methods

AddPosition(Vector3)

Declaration
public void AddPosition(Vector3 position)
Parameters
Type Name Description
Vector3 position

AddPositions(Vector3[])

Declaration
public void AddPositions(Vector3[] positions)
Parameters
Type Name Description
Vector3[] positions
| Improve this Doc View Source

BakeMesh(Mesh, Boolean)

Declaration
public void BakeMesh(Mesh mesh, bool useTransform = false)
Parameters
Type Name Description
Mesh mesh
Boolean useTransform

BakeMesh(Mesh, Camera, Boolean)

Declaration
public void BakeMesh(Mesh mesh, Camera camera, bool useTransform = false)
Parameters
Type Name Description
Mesh mesh
Camera camera
Boolean useTransform

Clear()

Declaration
public void Clear()

GetPosition(Int32)

Declaration
public Vector3 GetPosition(int index)
Parameters
Type Name Description
Int32 index
Returns
Type Description
Vector3

GetPositions(Vector3[])

Declaration
public int GetPositions(Vector3[] positions)
Parameters
Type Name Description
Vector3[] positions
Returns
Type Description
Int32

SetPosition(Int32, Vector3)

Declaration
public void SetPosition(int index, Vector3 position)
Parameters
Type Name Description
Int32 index
Vector3 position

SetPositions(Vector3[])

Declaration
public void SetPositions(Vector3[] positions)
Parameters
Type Name Description
Vector3[] positions

Extension Methods

RendererExtensions.UpdateGIMaterials(Renderer)
MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX