Documentation

Unity Engine

Unity Engine

GetDefaultCanvasTextMaterial()

Returns the default material that can be used for rendering text elements on the Canvas.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UIModule
Warning
Deprecated. Shared default material now used for text and general UI elements, call Canvas.GetDefaultCanvasMaterial()
public static Material GetDefaultCanvasTextMaterial()

Returns

Type

Description

Material