Simple Plant GrowthSimple Plant Growth
Simple Plant GrowthSimple Plant Growth
  • Docs
  • API
  • Changelog
  • Unity Asset Store
  • Bug report
  • SoyWar.SimplePlantGrowth
    • DatabaseAsset
      • Grass
      • Trees
    • GrassAsset
      • AlignToGround
      • DetailDensity
      • DryTint
      • HealthyTint
      • HoleEdgePadding
      • NoiseSeed
      • NoiseSpread
      • PositionJitter
      • RandomTint
      • RenderMode
      • TargetCoverage
      • Texture
      • Tint
      • UseDensityScaling
      • UseInstancing
      • UsePrototypeMesh
      • implicit operator
    • GrassComponent
      • AddInstances
      • AddInstancesAsync
      • GetGlobalPositionInstance
      • GetPlotSize
      • GrowFromInstances
      • GrowFromInstancesAsync
      • RemoveInstances
      • RemoveInstancesAsync
    • GrassData
      • Asset
      • Equals
      • GetHashCode
      • GrassData
      • HashCode
    • GrassValue
      • Amount
      • CompareTo
      • Equals
      • GetHashCode
      • GrassValue
      • Time
    • IPlantComponent
      • AutoGrowth
      • Dynamic
      • GetTime
      • GrowAll
      • GrowAllAsync
      • InitAuto
      • Override
      • Terrain
      • TimeOffset
    • IPlantData<T>
      • Asset
      • HashCode
    • ManagerComponent
      • AutoGrowth
      • Database
      • Dynamic
      • Grow
      • GrowAll
      • GrowAllAsync
      • GrowAsync
      • InitAuto
      • Instance
      • Persistent
      • ResetTimer
      • SetTimer
      • TimeOffset
    • PlantAsset<T>
      • CopyFrom
      • Destroy
      • Duplicate
      • GrowthTime
      • HasNextStep
      • Height
      • LockWidthToHeight
      • MaxGrowthTime
      • MaxHeight
      • MaxWidth
      • MinGrowthTime
      • MinHeight
      • MinWidth
      • Next
      • Prototype
      • RandomGrowthTime
      • RandomHeight
      • RandomWidth
      • Ratio
      • SetMinMaxGrowthTime
      • SetMinMaxHeight
      • SetMinMaxWidth
      • ToData
      • Validate
      • Width
    • PlantComponent<T1, T2, T3, T4>
      • AddAssets
      • ConvertPrototypesToAssets
      • Data
      • GetNearestInstance
      • GetNearestInstanceLocal
      • GrowFromAssets
      • GrowFromAssetsAsync
      • GrowFromInstances
      • GrowFromInstancesAsync
      • GrowFromPrototypes
      • GrowFromPrototypesAsync
      • GrownEvent
      • Locked
      • RemoveAssets
    • TreeAsset
      • BendFactor
      • NavMeshLod
      • implicit operator
    • TreeComponent
      • AddInstances
      • AddInstancesAsync
      • RemoveInstances
      • RemoveInstancesAsync
    • TreeData
      • Asset
      • Equals
      • GetHashCode
      • HashCode
      • TreeData
Generated by DocFX
(with DiscordFX + SingulinkFX)

Search Results for

    Class TreeAsset

    Related to:SoyWar.SimplePlantGrowth

    /

    Inherits from:objectObjectScriptableObjectPlantAsset<TreeAsset>

    /

    Implemented in:SoyWar.SimplePlantGrowth.dll

    Syntax
    [CreateAssetMenu(fileName = "Tree Growth Phase", menuName = "Simple Plant Growth/Tree", order = 1002)]
    public sealed class TreeAsset : PlantAsset<TreeAsset>

    Properties

    NameDescription
    BendFactor

    Bend factor of the tree prototype.

    NavMeshLod

    The LOD index of a Tree LODGroup that Unity uses to generate a NavMesh. It uses this value only for Trees with a LODGroup, and ignores this value for regular Trees.

    Operators

    NameDescription
    implicit operator TreeData(TreeAsset)

    Convert TreeAsset to TreeData.

    implicit operator TreePrototype(TreeAsset)

    Convert TreeAsset to TreePrototype.

    implicit operator TreeAsset(TreePrototype)

    Convert TreePrototype to TreeAsset.


    Inherited Members

    Properties

    NameDescription
    Destroy

    Destroys the plant when moving on to the next phase.

    GrowthTime

    Growth time.

    HasNextStep

    Check whether the next phase leads to plant growth or destruction.

    Height

    Height

    LockWidthToHeight

    Locks width to height.

    MaxGrowthTime

    Maximum growth time.

    MaxHeight

    Maximum height.

    MaxWidth

    Maximum width.

    MinGrowthTime

    Minimum growth time.

    MinHeight

    Minimum height.

    MinWidth

    Minimum width.

    Next

    The next phase of plant growth.

    Prototype

    GameObject associated with the plant.

    RandomGrowthTime

    Activates random growth time.

    RandomHeight

    Activates random height.

    RandomWidth

    Activates random width.

    Ratio

    Ratio between width and height.

    Width

    Width

    Methods

    NameDescription
    CopyFrom(T)

    Copy data from another instance to this one.

    Duplicate()

    Create a copy of asset.

    SetMinMaxGrowthTime(float, float)

    Defines the random range of growth time.

    SetMinMaxHeight(float, float)

    Defines the random range of height.

    SetMinMaxWidth(float, float)

    Defines the random range of width.

    ToData()

    Convert toIPlantData<T>.

    Validate()

    Checks whether asset is valid.

    Validate(out string)

    Checks whether asset is valid.