ProfilePropertyKeys.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. using System.Reflection;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. namespace Funly.SkyStudio
  6. {
  7. // Keys for accessing timeline keyframe groups.
  8. public abstract class ProfilePropertyKeys
  9. {
  10. // Sky.
  11. public const string SkyCubemapKey = "SkyCubemapKey";
  12. public const string SkyUpperColorKey = "SkyUpperColorKey";
  13. public const string SkyMiddleColorKey = "SkyMiddleColorKey";
  14. public const string SkyLowerColorKey = "SkyLowerColorKey";
  15. public const string SkyMiddleColorPositionKey = "SkyMiddleColorPosition";
  16. public const string HorizonTrasitionStartKey = "HorizonTransitionStartKey";
  17. public const string HorizonTransitionLengthKey = "HorizonTransitionLengthKey";
  18. public const string HorizonStarScaleKey = "HorizonStarScaleKey";
  19. public const string StarTransitionStartKey = "StarTransitionStartKey";
  20. public const string StarTransitionLengthKey = "StarTransitionLengthKey";
  21. // Sun.
  22. public const string SunColorKey = "SunColorKey";
  23. public const string SunTextureKey = "SunTextureKey";
  24. public const string SunSizeKey = "SunSizeKey";
  25. public const string SunRotationSpeedKey = "SunRotationSpeedKey";
  26. public const string SunEdgeFeatheringKey = "SunEdgeFeatheringKey";
  27. public const string SunColorIntensityKey = "SunColorIntensityKey";
  28. public const string SunLightColorKey = "SunLightColorKey";
  29. public const string SunLightIntensityKey = "SunLightIntensityKey";
  30. public const string SunPositionKey = "SunPositionKey";
  31. public const string SunSpriteRowCountKey = "SunSpriteRowCountKey";
  32. public const string SunSpriteColumnCountKey = "SunSpriteColumnCountKey";
  33. public const string SunSpriteItemCountKey = "SunSpriteItemCount";
  34. public const string SunSpriteAnimationSpeedKey = "SunSpriteAnimationSpeed";
  35. // Moon.
  36. public const string MoonColorKey = "MoonColorKey";
  37. public const string MoonTextureKey = "MoonTextureKey";
  38. public const string MoonSizeKey = "MoonSizeKey";
  39. public const string MoonRotationSpeedKey = "MoonRotationSpeedKey";
  40. public const string MoonEdgeFeatheringKey = "MoonEdgeFeatheringKey";
  41. public const string MoonColorIntensityKey = "MoonColorIntensityKey";
  42. public const string MoonLightColorKey = "MoonLightColorKey";
  43. public const string MoonLightIntensityKey = "MoonLightIntensityKey";
  44. public const string MoonPositionKey = "MoonPositionKey";
  45. public const string MoonOrbitSpeedKey = "MoonOrbitSpeed";
  46. public const string MoonSpriteRowCountKey = "MoonSpriteRowCountKey";
  47. public const string MoonSpriteColumnCountKey = "MoonSpriteColumnCountKey";
  48. public const string MoonSpriteItemCountKey = "MoonSpriteItemCount";
  49. public const string MoonSpriteAnimationSpeedKey = "MoonSpriteAnimationSpeed";
  50. // Star Basic.
  51. public const string StarBasicCubemapKey = "StarBasicCubemapKey";
  52. public const string StarBasicTwinkleSpeedKey = "StarBasicTwinkleSpeedKey";
  53. public const string StarBasicTwinkleAmountKey = "StarBasicTwinkleAmountKey";
  54. public const string StarBasicOpacityKey = "StarBasicOpacityKey";
  55. public const string StarBasicTintColorKey = "StarBasicTintColorKey";
  56. public const string StarBasicIntensityKey = "StarBasicIntensityKey";
  57. public const string StarBasicExponentKey = "StarBasicExponentKey";
  58. // Star layer 1.
  59. public const string Star1SizeKey = "Star1SizeKey";
  60. public const string Star1DensityKey = "Star1DensityKey";
  61. public const string Star1TextureKey = "Star1TextureKey";
  62. public const string Star1ColorKey = "Star1ColorKey";
  63. public const string Star1TwinkleAmountKey = "Star1TwinkleAmountKey";
  64. public const string Star1TwinkleSpeedKey = "Star1TwinkleSpeedKey";
  65. public const string Star1RotationSpeedKey = "Star1RotationSpeed";
  66. public const string Star1EdgeFeatheringKey = "Star1EdgeFeathering";
  67. public const string Star1ColorIntensityKey = "Star1ColorIntensityKey";
  68. public const string Star1SpriteRowCountKey = "Star1SpriteRowCountKey";
  69. public const string Star1SpriteColumnCountKey = "Star1SpriteColumnCountKey";
  70. public const string Star1SpriteItemCountKey = "Star1SpriteItemCount";
  71. public const string Star1SpriteAnimationSpeedKey = "Star1SpriteAnimationSpeed";
  72. // Star layer 2.
  73. public const string Star2SizeKey = "Star2SizeKey";
  74. public const string Star2DensityKey = "Star2DensityKey";
  75. public const string Star2TextureKey = "Star2TextureKey";
  76. public const string Star2ColorKey = "Star2ColorKey";
  77. public const string Star2TwinkleAmountKey = "Star2TwinkleAmountKey";
  78. public const string Star2TwinkleSpeedKey = "Star2TwinkleSpeedKey";
  79. public const string Star2RotationSpeedKey = "Star2RotationSpeed";
  80. public const string Star2EdgeFeatheringKey = "Star2EdgeFeathering";
  81. public const string Star2ColorIntensityKey = "Star2ColorIntensityKey";
  82. public const string Star2SpriteRowCountKey = "Star2SpriteRowCountKey";
  83. public const string Star2SpriteColumnCountKey = "Star2SpriteColumnCountKey";
  84. public const string Star2SpriteItemCountKey = "Star2SpriteItemCount";
  85. public const string Star2SpriteAnimationSpeedKey = "Star2SpriteAnimationSpeed";
  86. // Star layer 3.
  87. public const string Star3SizeKey = "Star3SizeKey";
  88. public const string Star3DensityKey = "Star3DensityKey";
  89. public const string Star3TextureKey = "Star3TextureKey";
  90. public const string Star3ColorKey = "Star3ColorKey";
  91. public const string Star3TwinkleAmountKey = "Star3TwinkleAmountKey";
  92. public const string Star3TwinkleSpeedKey = "Star3TwinkleSpeedKey";
  93. public const string Star3RotationSpeedKey = "Star3RotationSpeed";
  94. public const string Star3EdgeFeatheringKey = "Star3EdgeFeathering";
  95. public const string Star3ColorIntensityKey = "Star3ColorIntensityKey";
  96. public const string Star3SpriteRowCountKey = "Star3SpriteRowCountKey";
  97. public const string Star3SpriteColumnCountKey = "Star3SpriteColumnCountKey";
  98. public const string Star3SpriteItemCountKey = "Star3SpriteItemCount";
  99. public const string Star3SpriteAnimationSpeedKey = "Star3SpriteAnimationSpeed";
  100. // Clouds Noise Generated.
  101. public const string CloudNoiseTextureKey = "CloudNoiseTextureKey";
  102. public const string CloudDensityKey = "CloudDensityKey";
  103. public const string CloudSpeedKey = "CloudSpeedKey";
  104. public const string CloudDirectionKey = "CloudDirectionKey";
  105. public const string CloudHeightKey = "CloudHeightKey";
  106. public const string CloudColor1Key = "CloudColor1Key";
  107. public const string CloudColor2Key = "CloudColor2Key";
  108. public const string CloudFadePositionKey = "CloudFadePositionKey";
  109. public const string CloudFadeAmountKey = "CloudFadeAmountKey";
  110. public const string CloudTextureTiling = "CloudTextureTiling";
  111. // Cubemap Normal Clouds.
  112. public const string CloudCubemapNormalTextureKey = "CloudCubemapNormalTextureKey";
  113. public const string CloudCubemapNormalLitColorKey = "CloudCubemapNormalLitColorKey";
  114. public const string CloudCubemapNormalShadowKey = "CloudCubemapNormalShadowColorKey";
  115. public const string CloudCubemapNormalRotationSpeedKey = "CloudCubemapNormalRotationSpeedKey";
  116. public const string CloudCubemapNormalAmbientIntensity = "CloudCubemapNormalAmbientIntensityKey";
  117. public const string CloudCubemapNormalHeightKey = "CloudCubemapNormalHeightKey";
  118. public const string CloudCubemapNormalDoubleLayerRotationSpeedKey = "CloudCubemapNormalDoubleLayerRotationSpeedKey";
  119. public const string CloudCubemapNormalDoubleLayerHeightKey = "CloudCubemapNormalDoubleLayerHeightKey";
  120. public const string CloudCubemapNormalDoubleLayerCustomTextureKey = "CloudCubemapNormalDoubleLayerCustomTextureKey";
  121. public const string CloudCubemapNormalDoubleLayerLitColorKey = "CloudCubemapNormalDoubleLayerLitColorKey";
  122. public const string CloudCubemapNormalDoubleLayerShadowKey = "CloudCubemapNormalDoubleLayerShadowKey";
  123. // Cubemap Clouds.
  124. public const string CloudCubemapTextureKey = "CloudCubemapTextureKey";
  125. public const string CloudCubemapRotationSpeedKey = "CloudCubemapRotationSpeedKey";
  126. public const string CloudCubemapTintColorKey = "CloudCubemapTintColorKey";
  127. public const string CloudCubemapHeightKey = "CloudCubemapHeightKey";
  128. public const string CloudCubemapDoubleLayerRotationSpeedKey = "CloudCubemapDoubleLayerRotationSpeedKey";
  129. public const string CloudCubemapDoubleLayerHeightKey = "CloudCubemapDoubleLayerHeightKey";
  130. public const string CloudCubemapDoubleLayerCustomTextureKey = "CloudCubemapDoubleLayerCustomTextureKey";
  131. public const string CloudCubemapDoubleLayerTintColorKey = "CloudCubemapDoubleLayerTintColorKey";
  132. // Fog.
  133. public const string FogDensityKey = "FogDensityKey";
  134. public const string FogColorKey = "FogColorKey";
  135. public const string FogLengthKey = "FogLengthKey";
  136. public const string FogSyncWithGlobal = "FogSyncWithGlobal";
  137. // Rain Drizzle.
  138. public const string RainNearIntensityKey = "RainNearIntensityKey";
  139. public const string RainFarIntensityKey = "RainFarIntensityKey";
  140. public const string RainNearSpeedKey = "RainNearSpeedKey";
  141. public const string RainFarSpeedKey = "RainFarSpeedKey";
  142. public const string RainSoundVolumeKey = "RainSoundVolume";
  143. public const string RainSoundKey = "RainSoundKey";
  144. public const string RainTintColorKey = "RainTintColorKey";
  145. public const string RainWindTurbulence = "RainWindTurbulenceKey";
  146. public const string RainWindTurbulenceSpeed = "RainWindTurbulenceSpeedKey";
  147. public const string RainNearTextureKey = "RainNearTextureKey";
  148. public const string RainFarTextureKey = "RainFarTextureKey";
  149. public const string RainNearTextureTiling = "RainNearTextureTiling";
  150. public const string RainFarTextureTiling = "RainFarTextureTiling";
  151. // Rain Ground Splashes.
  152. public const string RainSplashMaxConcurrentKey = "RainSplashMaxConcurrentKey";
  153. public const string RainSplashAreaStartKey = "RainSplashAreaStartKey";
  154. public const string RainSplashAreaLengthKey = "RainSplashAreaLengthKey";
  155. public const string RainSplashScaleKey = "RainSplashScaleKey";
  156. public const string RainSplashScaleVarienceKey = "RainSplashScaleVarienceKey";
  157. public const string RainSplashIntensityKey = "RainSplashIntensityKey";
  158. public const string RainSplashSurfaceOffsetKey = "RainSplashSurfaceOffsetKey";
  159. public const string RainSplashTintColorKey = "RainSplashTintColorKey";
  160. // Lightning and Thunder.
  161. public const string LightningProbabilityKey = "LightningProbabilityKey";
  162. public const string LightningStrikeCoolDown = "LightningStrikeCoolDown";
  163. public const string LightningIntensityKey = "LightningIntensityKey";
  164. public const string LightningTintColorKey = "LightningTintColorKey";
  165. public const string ThunderSoundVolumeKey = "ThunderSoundVolumeKey";
  166. public const string ThunderSoundDelayKey = "ThunderSoundDelayKey";
  167. public static HashSet<string> GetPropertyKeysSet()
  168. {
  169. FieldInfo[] fields = typeof(ProfilePropertyKeys).GetFields(BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy);
  170. HashSet<string> validPropertyKeys = new HashSet<string>();
  171. foreach (FieldInfo field in fields) {
  172. if (!field.IsLiteral) {
  173. continue;
  174. }
  175. string propKey = field.GetValue(null) as string;
  176. validPropertyKeys.Add(propKey);
  177. }
  178. return validPropertyKeys;
  179. }
  180. }
  181. }