Class SunTerrainLayerConfigAsset
Implements
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags
Namespace: Fwt.HexTerrains.Suns.Data
Assembly: fwt.hexterrains.dll
Syntax
[CreateAssetMenu(menuName = "Fwt/HexTerrains/Suns/Sun Terrain Layer Config", fileName = "SunTerrainLayerConfig")]
public class SunTerrainLayerConfigAsset : ScriptableObject, ISunTerrainLayerConfig
Fields
_dayProgress
Declaration
[SerializeField]
[Tooltip("Initial day progress. Value between 0 and 1, where 0 means the start of the day and 1 means the end of the day.")]
[Range(0, 1)]
protected readonly float _dayProgress
Field Value
| Type | Description |
|---|---|
| float |
_sunSettings
Declaration
[SerializeField]
[Tooltip("Settings of the sun. This includes day length, year length, planet angle, sun size and sun heat curve.")]
protected SunSettings _sunSettings
Field Value
| Type | Description |
|---|---|
| SunSettings |
_targetLayers
Declaration
[SerializeField]
[Tooltip("Sun heat targets. Sun applies heat to this layers")]
protected List<SunTargetLayerSettings> _targetLayers
Field Value
| Type | Description |
|---|---|
| List<SunTargetLayerSettings> |
_yearProgress
Declaration
[SerializeField]
[Tooltip("Initial year progress. Value between 0 and 1, where 0 means the start of the year and 1 means the end of the year.")]
[Range(0, 1)]
protected readonly float _yearProgress
Field Value
| Type | Description |
|---|---|
| float |
Properties
DayProgress
Initial day progress. Value between 0 and 1, where 0 means the start of the day and 1 means the end of the day.
Declaration
public float DayProgress { get; }
Property Value
| Type | Description |
|---|---|
| float |
SunSettings
Settings of the sun. This includes day length, year length, planet angle, sun size and sun heat curve.
Declaration
public SunSettings SunSettings { get; set; }
Property Value
| Type | Description |
|---|---|
| SunSettings |
TargetLayers
Sun heat targets. Sun applies heat to this layers
Declaration
public IList<SunTargetLayerSettings> TargetLayers { get; }
Property Value
| Type | Description |
|---|---|
| IList<SunTargetLayerSettings> |
YearProgress
Initial year progress. Value between 0 and 1, where 0 means the start of the year and 1 means the end of the year.
Declaration
public float YearProgress { get; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
CreateTerrainLayer()
Declaration
public virtual SunTerrainLayer CreateTerrainLayer()
Returns
| Type | Description |
|---|---|
| SunTerrainLayer |