ドキュメント

Unity Engine

Unity Engine

SetWidth(float, float)

Set the line width at the start and at the end.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
注意
Deprecated. Use startWidth, endWidth or widthCurve instead.
public void SetWidth(float start, float end)

Parameters

start

The width at the start of the line.

The width at the end of the line.

Remarks

Examples

using UnityEngine;public class Example : MonoBehaviour{ // Adds a lineRenderer to this transform and // Converts the line Renderer into a triangle. void Start() { LineRenderer lineRenderer = gameObject.AddComponent<LineRenderer>(); lineRenderer.SetWidth(0, 3); }}