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 GrassAsset

    Related to:SoyWar.SimplePlantGrowth

    /

    Inherits from:objectObjectScriptableObjectPlantAsset<GrassAsset>

    /

    Implemented in:SoyWar.SimplePlantGrowth.dll

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

    Properties

    NameDescription
    AlignToGround

    Rotate detail axis parallel to the ground's normal direction, so that the detail is perpendicular to the ground.

    DetailDensity

    Controls detail density for this detail prototype, relative to it's size.

    DryTint

    Tint when the grass is "dry".

    HealthyTint

    Tint when the grass is "healthy".

    HoleEdgePadding

    Controls how far away detail objects are from the edge of the hole area.

    NoiseSeed

    Specifies the random seed value for detail object placement.

    NoiseSpread

    Controls the spatial frequency of the noise pattern used to vary the scale and color of the detail objects.

    PositionJitter

    Controls how Unity generates the detail positions.

    RandomTint

    Activates random tint.

    RenderMode

    Render mode for the DetailPrototype.

    TargetCoverage

    Controls the detail's target coverage.

    Texture

    Texture used by the DetailPrototype.

    Tint

    Grass tint.

    UseDensityScaling

    Indicates the global density scale set in the terrain settings affects this detail prototype.

    UseInstancing

    Indicates whether this detail prototype uses for rendering.

    UsePrototypeMesh

    Checks whether prototype must be used instead of texture.

    Operators

    NameDescription
    implicit operator GrassData(GrassAsset)

    Convert GrassData to GrassAsset.

    implicit operator DetailPrototype(GrassAsset)

    Convert GrassAsset to DetailPrototype.

    implicit operator GrassAsset(DetailPrototype)

    Convert DetailPrototype to GrassAsset.


    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.