Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

LineRenderer.useWorldSpace

Switch to Manual
public bool useWorldSpace;

Description

If enabled, the lines are defined in world space.

This means the object's position is ignored, and the lines are rendered around world origin.

no example available in C#

Did you find this page useful? Please give it a rating: