Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BakeMesh

Creates a snapshot of LineRenderer and stores it in mesh.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

BakeMesh(Mesh, bool)

Creates a snapshot of LineRenderer and stores it in mesh.
public void BakeMesh(Mesh mesh, bool useTransform = false)

Parameters

mesh

A static mesh that will receive the snapshot of the line.

useTransform

Include the rotation and scale of the Transform in the baked mesh.

BakeMesh(Mesh, Camera, bool)

Creates a snapshot of LineRenderer and stores it in mesh.
public void BakeMesh(Mesh mesh, Camera camera, bool useTransform = false)

Parameters

mesh

A static mesh that will receive the snapshot of the line.

camera

The camera used for determining which way camera-space lines will face.

useTransform

Include the rotation and scale of the Transform in the baked mesh.