public void Hydrate()
    {
        if (IsHydrated == false)
        {
            ExtrudeMap = ScriptableObject.CreateInstance <TerrainLayer_Variable>();
            ExtrudeMap.Hydrate();
            ExtrudeMap.IsHydrated = true;

            ExtrudeOctaves = ScriptableObject.CreateInstance <Int_MinMax_Reference>();
            ExtrudeOctaves.Hydrate();
            ExtrudeOctaves.IsHydrated = true;

            ExtrudeScale = ScriptableObject.CreateInstance <Float_MinMax_Reference>();
            ExtrudeScale.Hydrate();
            ExtrudeScale.IsHydrated = true;

            ExtrudePersistance = ScriptableObject.CreateInstance <Float_MinMax_Reference>();
            ExtrudePersistance.Hydrate();
            ExtrudePersistance.IsHydrated = true;

            ExtrudeLacunarity = ScriptableObject.CreateInstance <Float_MinMax_Reference>();
            ExtrudeLacunarity.Hydrate();
            ExtrudeLacunarity.IsHydrated = true;

            ExtrudeRoot = ScriptableObject.CreateInstance <Float_MinMax_Reference>();
            ExtrudeRoot.Hydrate();
            ExtrudeRoot.IsHydrated = true;

            ExtrudeMagnitude = ScriptableObject.CreateInstance <Float_MinMax_Reference>();
            ExtrudeMagnitude.Hydrate();
            ExtrudeMagnitude.IsHydrated = true;
        }
    }
Example #2
0
    public void Hydrate()
    {
        if (IsHydrated == false)
        {
            Octaves      = ScriptableObject.CreateInstance <Int_MinMax_Reference>();
            Octaves.name = "Octaves";
            Octaves.Hydrate();

            Scale      = ScriptableObject.CreateInstance <Float_MinMax_Reference>();
            Scale.name = "Scale";
            Scale.Hydrate();

            Persistance      = ScriptableObject.CreateInstance <Float_MinMax_Reference>();
            Persistance.name = "Persistance";
            Persistance.Hydrate();

            Lacunarity      = ScriptableObject.CreateInstance <Float_MinMax_Reference>();
            Lacunarity.name = "Lacunarity";
            Lacunarity.Hydrate();

            Root      = ScriptableObject.CreateInstance <Float_MinMax_Reference>();
            Root.name = "Root";
            Root.Hydrate();

            Magnitude      = ScriptableObject.CreateInstance <Float_MinMax_Reference>();
            Magnitude.name = "Magnitude";
            Magnitude.Hydrate();
        }
    }