Skip to content

Chart3DMaterialPresets

ClassChartGuruChartGuru.3D
public static class Chart3DMaterialPresets

The built-in surface materials behind Chart3DSurfacePreset, the chart's Surface Material setting (ChartSpatialSettings.SurfacePreset, .SurfacePreset(...) in code). Every preset wraps the package's cross-pipeline vertex-lit or unlit shader, which blends per-mark vertex colors, with its own metalness and roughness, so charts never render with a missing material and their color gradients stay live. Chart3DSurfacePreset.Theme is the fallback a chart uses when its theme has no usable surface material.

public static Material Get(Chart3DSurfacePreset preset)

The shared material of preset, created on first use.

Parameters

NameType
presetChartGuru.Chart3DSurfacePreset

Returns

UnityEngine.Material