Click or drag to resize

FastLineRenderer Class

Fast line renderer script
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          DigitalRuby.FastLineRendererFastLineRenderer

Namespace:  DigitalRuby.FastLineRenderer
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public class FastLineRenderer : MonoBehaviour

The FastLineRenderer type exposes the following members.

Constructors
  NameDescription
Public methodFastLineRenderer
Initializes a new instance of the FastLineRenderer class
Top
Properties
  NameDescription
Public propertyanimation Obsolete.

The Animation attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyaudio Obsolete.

The AudioSource attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertycamera Obsolete.

The Camera attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertycollider Obsolete.

The Collider attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertycollider2D Obsolete.

The Collider2D component attached to the object.

(Inherited from Component.)
Public propertyconstantForce Obsolete.

The ConstantForce attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyenabled

Enabled Behaviours are Updated, disabled Behaviours are not.

(Inherited from Behaviour.)
Public propertygameObject

The game object this component is attached to. A component is always attached to a game object.

(Inherited from Component.)
Public propertyguiElement Obsolete. (Inherited from Component.)
Public propertyguiText Obsolete.

The GUIText attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyguiTexture Obsolete.

The GUITexture attached to this GameObject (Read Only). (null if there is none attached).

(Inherited from Component.)
Public propertyhideFlags

Should the object be hidden, saved with the scene or modifiable by the user?

(Inherited from Object.)
Public propertyhingeJoint Obsolete.

The HingeJoint attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyisActiveAndEnabled

Has the Behaviour had enabled called.

(Inherited from Behaviour.)
Public propertylight Obsolete.

The Light attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyMesh
Get or set the mesh that this fast line renderer is using, or null if no mesh is being used yet. If getting a mesh, you must call Apply first, which will create the mesh. Setting the mesh will clear the fast line renderer first.
Public propertyname

The name of the object.

(Inherited from Object.)
Public propertynetworkView Obsolete.

The NetworkView attached to this GameObject (Read Only). (null if there is none attached).

(Inherited from Component.)
Public propertyparticleEmitter Obsolete.

The ParticleEmitter attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyparticleSystem Obsolete.

The ParticleSystem attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyrenderer Obsolete.

The Renderer attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyrigidbody Obsolete.

The Rigidbody attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyrigidbody2D Obsolete.

The Rigidbody2D that is attached to the Component's GameObject.

(Inherited from Component.)
Public propertyrunInEditMode

Allow a specific instance of a MonoBehaviour to run in edit mode (only available in the editor).

(Inherited from MonoBehaviour.)
Public propertytag

The tag of this game object.

(Inherited from Component.)
Public propertytransform

The Transform attached to this GameObject.

(Inherited from Component.)
Public propertyuseGUILayout

Disabling this lets you skip the GUI layout phase.

(Inherited from MonoBehaviour.)
Top
Methods
  NameDescription
Public methodAddLine(FastLineRendererProperties, Boolean, Boolean)
Adds an individual line that is not meant to be joined to other lines
Public methodAddLine(FastLineRendererProperties, IListVector3, ActionFastLineRendererProperties, Boolean, Boolean)
Adds a line that starts at the first point in the list and ends at the last point of the list
Public methodAddLines
Add distinct line segments from a list. The list must contain start and end points, repeating for each segment.
Public methodAppendArc
Append an arc to the fast line renderer
Public methodAppendCircle
Append a circle to the fast line renderer
Public methodAppendCurve
Append a quad/bezier curve to the fast line renderer. The line curves from props.Start to props.End, using the two control points to curve.
Public methodAppendGrid
Append a grid
Public methodAppendLine
Append a line - End value of props is ignored, use Start field instead.
Public methodAppendSpline
Append a spline to the fast line renderer. Start and End in props is ignored.
Public methodApply
Apply all line creations
Public methodApply(Boolean) Obsolete.
Obslete. Use apply without a parameter. Mesh optimization is no longer needed as of Unity 5.5.
Public methodBroadcastMessage(String)

Calls the method named methodName on every MonoBehaviour in this game object or any of its children.

(Inherited from Component.)
Public methodBroadcastMessage(String, Object)

Calls the method named methodName on every MonoBehaviour in this game object or any of its children.

(Inherited from Component.)
Public methodBroadcastMessage(String, SendMessageOptions)

Calls the method named methodName on every MonoBehaviour in this game object or any of its children.

(Inherited from Component.)
Public methodBroadcastMessage(String, Object, SendMessageOptions)

Calls the method named methodName on every MonoBehaviour in this game object or any of its children.

(Inherited from Component.)
Public methodCanAddLines
Determines if lineCount lines can be added without creating a new mesh
Public methodCancelInvoke

Cancels all Invoke calls on this MonoBehaviour.

(Inherited from MonoBehaviour.)
Public methodCancelInvoke(String)

Cancels all Invoke calls with name methodName on this behaviour.

(Inherited from MonoBehaviour.)
Public methodChangePosition
Changes the position of a single line segment. This method does not support join styles. You must call Apply to make the changes permanent. Error will happen if index is out of range.
Public methodCompareTag

Is this game object tagged with tag ?

(Inherited from Component.)
Public methodCopyTo
Copy the properties of this fast line renderer to another fast line renderer
Public methodStatic memberCreateWithParent
Create a new FastLineRenderer or retrieve from cache if available
Public methodEndLine
Ends a line. use Start on props to specify the end point. Set LineType to EndCap to cap.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetComponent(Type)

Returns the component of Type type if the game object has one attached, null if it doesn't.

(Inherited from Component.)
Public methodGetComponent(String)

Returns the component with name type if the game object has one attached, null if it doesn't.

(Inherited from Component.)
Public methodGetComponent``1 (Inherited from Component.)
Public methodGetComponentInChildren(Type)

Returns the component of Type type in the GameObject or any of its children using depth first search.

(Inherited from Component.)
Public methodGetComponentInChildren(Type, Boolean) (Inherited from Component.)
Public methodGetComponentInChildren``1 (Inherited from Component.)
Public methodGetComponentInChildren``1(Boolean) (Inherited from Component.)
Public methodGetComponentInParent(Type)

Returns the component of Type type in the GameObject or any of its parents.

(Inherited from Component.)
Public methodGetComponentInParent``1 (Inherited from Component.)
Public methodGetComponents(Type)

Returns all components of Type type in the GameObject.

(Inherited from Component.)
Public methodGetComponents(Type, ListComponent) (Inherited from Component.)
Public methodGetComponents``1 (Inherited from Component.)
Public methodGetComponents``1(ListUMP) (Inherited from Component.)
Public methodGetComponentsInChildren(Type)

Returns all components of Type type in the GameObject or any of its children.

(Inherited from Component.)
Public methodGetComponentsInChildren(Type, Boolean)

Returns all components of Type type in the GameObject or any of its children.

(Inherited from Component.)
Public methodGetComponentsInChildren``1 (Inherited from Component.)
Public methodGetComponentsInChildren``1(Boolean) (Inherited from Component.)
Public methodGetComponentsInChildren``1(ListUMP) (Inherited from Component.)
Public methodGetComponentsInChildren``1(Boolean, ListUMP) (Inherited from Component.)
Public methodGetComponentsInParent(Type) (Inherited from Component.)
Public methodGetComponentsInParent(Type, Boolean)

Returns all components of Type type in the GameObject or any of its parents.

(Inherited from Component.)
Public methodGetComponentsInParent``1 (Inherited from Component.)
Public methodGetComponentsInParent``1(Boolean) (Inherited from Component.)
Public methodGetComponentsInParent``1(Boolean, ListUMP) (Inherited from Component.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetInstanceID

Returns the instance id of the object.

(Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodInvoke

Invokes the method methodName in time seconds.

(Inherited from MonoBehaviour.)
Public methodInvokeRepeating

Invokes the method methodName in time seconds, then repeatedly every repeatRate seconds.

(Inherited from MonoBehaviour.)
Public methodIsInvoking

Is any invoke pending on this MonoBehaviour?

(Inherited from MonoBehaviour.)
Public methodIsInvoking(String)

Is any invoke on methodName pending?

(Inherited from MonoBehaviour.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodReset
Reset everything, remove all lines
Public methodStatic memberResetAll
Reset all FastLineRenderer objects in the scene - this is fast and does not rely on the slow Unity Find* methods.
Public methodSendMessage(String)

Calls the method named methodName on every MonoBehaviour in this game object.

(Inherited from Component.)
Public methodSendMessage(String, Object)

Calls the method named methodName on every MonoBehaviour in this game object.

(Inherited from Component.)
Public methodSendMessage(String, SendMessageOptions)

Calls the method named methodName on every MonoBehaviour in this game object.

(Inherited from Component.)
Public methodSendMessage(String, Object, SendMessageOptions)

Calls the method named methodName on every MonoBehaviour in this game object.

(Inherited from Component.)
Public methodSendMessageUpwards(String)

Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour.

(Inherited from Component.)
Public methodSendMessageUpwards(String, Object)

Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour.

(Inherited from Component.)
Public methodSendMessageUpwards(String, SendMessageOptions)

Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour.

(Inherited from Component.)
Public methodSendMessageUpwards(String, Object, SendMessageOptions)

Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour.

(Inherited from Component.)
Public methodSendToCache
Reset and then add this FastLineRenderer to the cache
Public methodSendToCacheAfter
Send this FastLineRenderer back to the cache after a certain time
Public methodSetCapacity
Set the capacity of all internal lists.
Public methodStartCoroutine(IEnumerator)

Starts a coroutine.

(Inherited from MonoBehaviour.)
Public methodStartCoroutine(String)

Starts a coroutine named methodName.

(Inherited from MonoBehaviour.)
Public methodStartCoroutine(String, Object)

Starts a coroutine named methodName.

(Inherited from MonoBehaviour.)
Public methodStartCoroutine_Auto Obsolete. (Inherited from MonoBehaviour.)
Public methodStartLine
Start a line. Start and End must be set on the properties. Set LineType to StartCap to cap.
Public methodStopAllCoroutines

Stops all coroutines running on this behaviour.

(Inherited from MonoBehaviour.)
Public methodStopCoroutine(String)

Stops the first coroutine named methodName, or the coroutine stored in routine running on this behaviour.

(Inherited from MonoBehaviour.)
Public methodStopCoroutine(IEnumerator)

Stops the first coroutine named methodName, or the coroutine stored in routine running on this behaviour.

(Inherited from MonoBehaviour.)
Public methodStopCoroutine(Coroutine)

Stops the first coroutine named methodName, or the coroutine stored in routine running on this behaviour.

(Inherited from MonoBehaviour.)
Public methodToString

Returns the name of the GameObject.

(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldAnimationSpeed
Animation speed. Used for marching ants style animation.
Public fieldBoundsScale
Amount to scale the mesh by. If you aren't using GPU properties that modify position (i.e. turbulence, velocity and angular velocity) you can leave as 1. If you are using GPU properties, you will want to assign a value that is large enough to scale the mesh size so that vertices are visible for the lifetime of the lines.
Public fieldCamera
Camera. Defaults to main camera.
Public fieldEndCapScale
Scale for end caps.
Public fieldGlowAnimationSpeed
Glow animation speed. Used for marching ants style animation.
Public fieldGlowColor
Glow color. Applies globally in the Material rather than per vertex.
Public fieldGlowIntensityMultiplier
Glow itensity multiplier. Applies globally in the Material rather than per vertex. Set to 0 for no glow.
Public fieldGlowLengthMultiplier
Glow length multiplier. Applies globally in the Material rather than per vertex.
Public fieldGlowTexture
Glow texture
Public fieldGlowTextureEndCap
Glow texture - end cap
Public fieldGlowTextureRoundJoin
Glow texture - round join
Public fieldGlowTextureStartCap
Glow texture - start cap
Public fieldGlowUVXScale
Line glow UV X Scale. If not 1, Ensure your material glow texture is set to repeat. Applies globally in the Material rather than per vertex.
Public fieldGlowUVYScale
Line glow UV Y Scale. IF not 1, Ensure your material glow texture is set to repeat. Applies globally in the Material rather than per vertex.
Public fieldGlowWidthMultiplier
Glow width multiplier. Applies globally in the Material rather than per vertex.
Public fieldInitialLineGroups
Initial set of lines. Leave empty if you are generating your lines in script.
Public fieldJitterMultiplier
Jitter multiplier. Applies globally in the Material rather than per vertex.
Public fieldLineTexture
Line texture
Public fieldLineTextureEndCap
Line texture - end cap
Public fieldLineTextureRoundJoin
Line texture - round join
Public fieldLineTextureStartCap
Line texture - start cap
Public fieldLineUVXScale
Line UV X Scale. If not 1, Ensure your material texture is set to repeat. Applies globally in the Material rather than per vertex.
Public fieldLineUVYScale
Line UV Y Scale. If not 1, Ensure your material texture is set to repeat. Applies globally in the Material rather than per vertex.
Public fieldMaterial
Material to render the lines with (glow)
Public fieldMaterialNoGlow
Material to render the lines with (no glow)
Public fieldStatic memberMaxIndicesPerMesh
Maximum indices per mesh
Public fieldStatic memberMaxLinesPerMesh
Maximum number of lines (quads) per mesh
Public fieldStatic memberMaxVerticesPerMesh
Maximum vertices per mesh
Public fieldStatic memberQuadIndices
Contains indices that allow rendering quads with a mesh, using QuadUV* uv coordinates. Array is MaxIndicesPerMesh in size, allowing you to pull out that exact amount of indices you need into a new array. Unity really needs to provide index and count parameters to really optimize the use of this array.
Public fieldStatic memberQuadUV1
Quad UV1
Public fieldStatic memberQuadUV2
Quad UV2
Public fieldStatic memberQuadUV3
Quad UV3
Public fieldStatic memberQuadUV4
Quad UV4
Public fieldScreenRadiusMultiplier
Experimental, screen radius multiplier, attempts to make lines stay the same radius on screen using this multiplier
Public fieldSortLayerName
Sort layer
Public fieldSortOrderInLayer
Sort order in layer
Public fieldStartCapScale
Scale for start caps.
Public fieldTintColor
Tint color. Applies globally to all lines and is applied in addition to individual line colors.
Public fieldTurbulence
Turbulence. Requires lines to have LifeTime setup and works only at runtime. Applies globally in the Material rather than per vertex.
Public fieldUseWorldSpace
True to use world space, false to use local space. Default is local space. World space will orient at 0,0,0 in world space. Local space will orient at 0,0,0 relative to parent.
Public fieldStatic memberVerticesPerLine
Number of vertices per line / quad
Top
See Also