Table of Contents

Class PersistentVegetationStorage

Namespace
AwesomeTechnologies.Vegetation.PersistentStorage
Assembly
Assembly-CSharp.dll
public class PersistentVegetationStorage : MonoBehaviour
Inheritance
PersistentVegetationStorage
Extension Methods

Constructors

PersistentVegetationStorage()

public PersistentVegetationStorage()

Fields

BrushSize

public float BrushSize

Field Value

float

CurrentTabIndex

public int CurrentTabIndex

Field Value

int

DisablePersistentStorage

public bool DisablePersistentStorage

Field Value

bool

GroundLayerMask

public LayerMask GroundLayerMask

Field Value

LayerMask

PaintOnColliders

public bool PaintOnColliders

Field Value

bool

PersistentVegetationStoragePackage

public PersistentVegetationStoragePackage PersistentVegetationStoragePackage

Field Value

PersistentVegetationStoragePackage

PrecisionPaintingMode

public PrecisionPaintingMode PrecisionPaintingMode

Field Value

PrecisionPaintingMode

RandomizePosition

public bool RandomizePosition

Field Value

bool

SampleDistance

public float SampleDistance

Field Value

float

SelectedBakeVegetationID

public string SelectedBakeVegetationID

Field Value

string

SelectedBrushIndex

public int SelectedBrushIndex

Field Value

int

SelectedEditVegetationID

public string SelectedEditVegetationID

Field Value

string

SelectedImporterIndex

public int SelectedImporterIndex

Field Value

int

SelectedPaintVegetationID

public string SelectedPaintVegetationID

Field Value

string

SelectedPrecisionPaintingVegetationID

public string SelectedPrecisionPaintingVegetationID

Field Value

string

SelectedStorageVegetationID

public string SelectedStorageVegetationID

Field Value

string

SelectedVegetationPackageIndex

public int SelectedVegetationPackageIndex

Field Value

int

UseSteepnessRules

public bool UseSteepnessRules

Field Value

bool

VegetationImporterList

public List<IVegetationImporter> VegetationImporterList

Field Value

List<IVegetationImporter>

VegetationSystemPro

public VegetationSystemPro VegetationSystemPro

Field Value

VegetationSystemPro

Methods

AddVegetationItemInstance(string, Vector3, Vector3, Quaternion, bool, byte, float, bool)

public void AddVegetationItemInstance(string vegetationItemID, Vector3 worldPosition, Vector3 scale, Quaternion rotation, bool applyMeshRotation, byte vegetationSourceID, float distanceFalloff, bool clearCellCache = false)

Parameters

vegetationItemID string
worldPosition Vector3
scale Vector3
rotation Quaternion
applyMeshRotation bool
vegetationSourceID byte
distanceFalloff float
clearCellCache bool

AddVegetationItemInstanceEx(string, Vector3, Vector3, Quaternion, byte, float, float, bool)

public void AddVegetationItemInstanceEx(string vegetationItemID, Vector3 worldPosition, Vector3 scale, Quaternion rotation, byte vegetationSourceID, float minimumDistance, float distanceFalloff, bool clearCellCache = false)

Parameters

vegetationItemID string
worldPosition Vector3
scale Vector3
rotation Quaternion
vegetationSourceID byte
minimumDistance float
distanceFalloff float
clearCellCache bool

BakeVegetationItem(string)

public void BakeVegetationItem(string vegetationItemID)

Parameters

vegetationItemID string

Dispose()

public void Dispose()

GetPersistentVegetationCell(int, int)

public PersistentVegetationCell GetPersistentVegetationCell(int xIndex, int yIndex)

Parameters

xIndex int
yIndex int

Returns

PersistentVegetationCell

GetPersistentVegetationCellCount()

public int GetPersistentVegetationCellCount()

Returns

int

HasValidPersistentStorage(int)

public bool HasValidPersistentStorage(int cellCount)

Parameters

cellCount int

Returns

bool

InitializePersistentStorage()

public void InitializePersistentStorage()

InitializePersistentStorage(int)

public void InitializePersistentStorage(int cellCount)

Parameters

cellCount int

RemoveVegetationItemInstance(string, Vector3, float, bool)

public void RemoveVegetationItemInstance(string vegetationItemID, Vector3 worldPosition, float minimumDistance, bool clearCellCache = false)

Parameters

vegetationItemID string
worldPosition Vector3
minimumDistance float
clearCellCache bool

RemoveVegetationItemInstances(string)

public void RemoveVegetationItemInstances(string vegetationItemID)

Parameters

vegetationItemID string

RemoveVegetationItemInstances(string, int)

public void RemoveVegetationItemInstances(string vegetationItemID, int vegetationSourceID)

Parameters

vegetationItemID string
vegetationSourceID int

RepositionCellItems(int, string)

public void RepositionCellItems(int cellIndex, string vegetationItemID)

Parameters

cellIndex int
vegetationItemID string

SetPersistentVegetationStoragePackage(PersistentVegetationStoragePackage)

public void SetPersistentVegetationStoragePackage(PersistentVegetationStoragePackage persistentVegetationStoragePackage)

Parameters

persistentVegetationStoragePackage PersistentVegetationStoragePackage