You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
843 B
C#

using UnityEngine;
[CreateAssetMenu(fileName = "NewTreeRandomPreset", menuName = "Tree/Random Preset")]
public class TreeRandomPreset : ScriptableObject
{
[Header("Tree Settings")]
public int maxDepth = 8;
public float branchAngle = 30f;
public float scaleFactor = 0.7f;
public float twistAngle = 90f;
[Header("Randomness")]
[Range(0f, 1f)] public float angleRandom = 0.3f;
[Range(0f, 1f)] public float scaleRandom = 0.2f;
[Range(0f, 1f)] public float twistRandom = 0.3f;
[Range(1, 4)] public int maxChildren = 3;
[Range(0f, 1f)] public float extraChildChance = 0.3f;
[Header("Colors")]
public Color trunkColor = new Color(1f, 0.6f, 0.8f);
public Color midColor = new Color(1f, 0.45f, 0f);
public Color tipColor = new Color(1f, 0.85f, 0f);
}