ChartTheme3D
public sealed class ChartTheme3DThe 3D appearance of a ChartTheme: studio lights, ambient light and environment, materials, surface
color maps and resolution, 3D stroke widths, label placement and the shadow plane. Chart Guru 3D reads it together
with the theme's palette, typography, background and axis, grid and text colors; 2D charts ignore it.
Fields
Section titled “Fields”
KeyLightColor
Section titled “KeyLightColor”public Color KeyLightColorReturns
UnityEngine.Color
KeyLightIntensity
Section titled “KeyLightIntensity”public float KeyLightIntensityReturns
System.Single
KeyLightRotation
Section titled “KeyLightRotation”public Vector3 KeyLightRotationReturns
UnityEngine.Vector3
FillLightColor
Section titled “FillLightColor”public Color FillLightColorReturns
UnityEngine.Color
FillLightIntensity
Section titled “FillLightIntensity”public float FillLightIntensityReturns
System.Single
RimLightColor
Section titled “RimLightColor”public Color RimLightColorReturns
UnityEngine.Color
RimLightIntensity
Section titled “RimLightIntensity”public float RimLightIntensityReturns
System.Single
AmbientIntensity
Section titled “AmbientIntensity”public float AmbientIntensityReturns
System.Single
AmbientSkyColor
Section titled “AmbientSkyColor”public Color AmbientSkyColorReturns
UnityEngine.Color
AmbientEquatorColor
Section titled “AmbientEquatorColor”public Color AmbientEquatorColorReturns
UnityEngine.Color
AmbientGroundColor
Section titled “AmbientGroundColor”public Color AmbientGroundColorReturns
UnityEngine.Color
EnvironmentCubemap
Section titled “EnvironmentCubemap”public Cubemap EnvironmentCubemapReturns
UnityEngine.Cubemap
SurfaceMaterial
Section titled “SurfaceMaterial”public Material SurfaceMaterialReturns
UnityEngine.Material
PointMaterial
Section titled “PointMaterial”public Material PointMaterialReturns
UnityEngine.Material
LineMaterial
Section titled “LineMaterial”public Material LineMaterialReturns
UnityEngine.Material
Metalness
Section titled “Metalness”public float MetalnessReturns
System.Single
Roughness
Section titled “Roughness”public float RoughnessReturns
System.Single
AnalyticalSurfaceLighting
Section titled “AnalyticalSurfaceLighting”public float AnalyticalSurfaceLightingReturns
System.Single
HeightColormap
Section titled “HeightColormap”public ChartColormap HeightColormapReturns
ChartGuru.ChartColormap
HeightGradient
Section titled “HeightGradient”public Gradient HeightGradientReturns
UnityEngine.Gradient
UseNormalGradient
Section titled “UseNormalGradient”public bool UseNormalGradientReturns
System.Boolean
NormalColormap
Section titled “NormalColormap”public ChartColormap NormalColormapReturns
ChartGuru.ChartColormap
NormalGradient
Section titled “NormalGradient”public Gradient NormalGradientReturns
UnityEngine.Gradient
SurfaceResolutionX
Section titled “SurfaceResolutionX”public int SurfaceResolutionXReturns
System.Int32
SurfaceResolutionZ
Section titled “SurfaceResolutionZ”public int SurfaceResolutionZReturns
System.Int32
AxisLineWidth
Section titled “AxisLineWidth”public float AxisLineWidthReturns
System.Single
GridLineWidth
Section titled “GridLineWidth”public float GridLineWidthReturns
System.Single
LabelScale
Section titled “LabelScale”public float LabelScaleReturns
System.Single
LabelOffset
Section titled “LabelOffset”public float LabelOffsetReturns
System.Single
LabelsFaceCamera
Section titled “LabelsFaceCamera”public bool LabelsFaceCameraReturns
System.Boolean
DrawShadowPlane
Section titled “DrawShadowPlane”public bool DrawShadowPlaneReturns
System.Boolean
ShadowPlaneColor
Section titled “ShadowPlaneColor”public Color ShadowPlaneColorReturns
UnityEngine.Color
ShadowPlaneScale
Section titled “ShadowPlaneScale”public float ShadowPlaneScaleReturns
System.Single
Methods
Section titled “Methods”
SampleHeight(float)
Section titled “SampleHeight(float)”public Color SampleHeight(float t)Samples ChartTheme3D.HeightColormap, or ChartTheme3D.HeightGradient when it is Custom, at a normalized height.
Parameters
| Name | Type |
|---|---|
t |
System.Single |
Returns
UnityEngine.Color
SampleNormal(Vector3)
Section titled “SampleNormal(Vector3)”public Color SampleNormal(Vector3 normal)Encodes the full normal orientation, or samples ChartTheme3D.NormalColormap (ChartTheme3D.NormalGradient when it
is Custom) by slope when ChartTheme3D.UseNormalGradient is on.
Parameters
| Name | Type |
|---|---|
normal |
UnityEngine.Vector3 |
Returns
UnityEngine.Color
Clone()
Section titled “Clone()”public ChartTheme3D Clone()Creates an independent copy; material and cubemap assets are shared, color maps are copied.
Returns
ChartGuru.ChartTheme3D
Constructors
Section titled “Constructors”
ChartTheme3D()
Section titled “ChartTheme3D()”public ChartTheme3D()