TextStudioPreparedColorField
public sealed class TextStudioPreparedColorFieldA prepared scalar silhouette and the exact static image geometry from which it was produced.
Constructors
Section titled “Constructors”
TextStudioPreparedColorField(TextStudioColorSource, Texture2D, Rect, float, float, float, float)
Section titled “TextStudioPreparedColorField(TextStudioColorSource, Texture2D, Rect, float, float, float, float)”public TextStudioPreparedColorField(TextStudioColorSource source, Texture2D field, Rect bounds, float pixelsPerEm, float requestedPixelsPerEm, float paddingEm, float distanceRangeEm)Creates and validates a prepared silhouette field using copied static Texture2D source geometry and the supplied bounds, density, padding, and distance interval.
Parameters
| Name | Type |
|---|---|
source |
TextStudio.TextStudioColorSource |
field |
UnityEngine.Texture2D |
bounds |
UnityEngine.Rect |
pixelsPerEm |
System.Single |
requestedPixelsPerEm |
System.Single |
paddingEm |
System.Single |
distanceRangeEm |
System.Single |
Properties
Section titled “Properties”
SourceTexture
Section titled “SourceTexture”public Texture2D SourceTexture { get; }Returns
UnityEngine.Texture2D
public Texture2D Field { get; }Returns
UnityEngine.Texture2D
Bounds
Section titled “Bounds”public Rect Bounds { get; }Returns
UnityEngine.Rect
PixelsPerEm
Section titled “PixelsPerEm”public float PixelsPerEm { get; }Returns
System.Single
RequestedPixelsPerEm
Section titled “RequestedPixelsPerEm”public float RequestedPixelsPerEm { get; }Returns
System.Single
PaddingEm
Section titled “PaddingEm”public float PaddingEm { get; }Returns
System.Single
DistanceRangeEm
Section titled “DistanceRangeEm”public float DistanceRangeEm { get; }Returns
System.Single
TextureBytes
Section titled “TextureBytes”public long TextureBytes { get; }Returns
System.Int64