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 GrassComponent

    Related to:SoyWar.SimplePlantGrowth

    /

    Inherits from:objectObjectComponentBehaviourMonoBehaviourPlantComponent<GrassAsset,Vector2Int,GrassValue,GrassData>

    /

    Implemented in:SoyWar.SimplePlantGrowth.dll

    Implements interfaces:IPlantComponent,

    Syntax
    [AddComponentMenu("Simple Plant Growth/Grass Growth Terrain Manager")]
    [DefaultExecutionOrder(-99)]
    public sealed class GrassComponent : PlantComponent<GrassAsset, Vector2Int, GrassValue, GrassData>, IPlantComponent

    Methods

    NameDescription
    AddInstances(GrassAsset, params Vector2Int[])

    Grass instances to include from the growth process withGrassAsset.

    AddInstances(int, params Vector2Int[])

    Grass instances to include from the growth process with the prototype index.

    AddInstancesAsync(GrassAsset, params Vector2Int[])

    Grass instances to include from the growth process withGrassAsset.

    AddInstancesAsync(int, params Vector2Int[])

    Grass instances to include from the growth process with the prototype index.

    GetGlobalPositionInstance(Vector2Int)

    Global position of the instance position.

    GetPlotSize()

    Plot size

    GrowFromInstances(GrassAsset, params Vector2Int[])

    Grows plant instances associated to theGrassAssetspecified manually.

    GrowFromInstances(IList<GrassAsset>, params Vector2Int[])

    Grows plant instances associated toGrassAssetspecified manually.

    GrowFromInstances(IList<int>, params Vector2Int[])

    Grows plant instances associated to indices prototypes specified manually.

    GrowFromInstances(int, params Vector2Int[])

    Grows plant instances associated to index prototype specified manually.

    GrowFromInstancesAsync(GrassAsset, params Vector2Int[])

    Grows plant instances associated to theGrassAssetspecified manually.

    GrowFromInstancesAsync(IList<GrassAsset>, params Vector2Int[])

    Grows plant instances associated toGrassAssetspecified manually.

    GrowFromInstancesAsync(IList<int>, params Vector2Int[])

    Grows plant instances associated to indices prototypes specified manually.

    GrowFromInstancesAsync(int, params Vector2Int[])

    Grows plant instances associated to index prototype specified manually.

    RemoveInstances(GrassAsset, params Vector2Int[])

    Grass instances to exclude from the growth process withGrassAsset.

    RemoveInstances(int, params Vector2Int[])

    Grass instances to exclude from the growth process with the prototype index.

    RemoveInstancesAsync(GrassAsset, params Vector2Int[])

    Grass instances to exclude from the growth process withGrassAsset.

    RemoveInstancesAsync(int, params Vector2Int[])

    Grass instances to exclude from the growth process with the prototype index.


    Inherited Members

    Properties

    NameDescription
    Data

    Data used to manage the plants growth.

    GrownEvent

    Event triggered when plant phase changes.

    Locked

    Indicates whether the automatic growth operation locks the possibility of using a synchronous operation

    AutoGrowth

    Enables the automatic growth.

    Dynamic

    Takes into account external modifications made in the terrain.

    InitAuto

    Enables automatic tracking of assets existing on the targeted terrain during initialization.

    Override

    Allow overriding the default parameters used byManagerComponent.

    Terrain

    Terrain

    TimeOffset

    Relative time offset to be added to the local time.

    Methods

    NameDescription
    AddAssets(params T1[])

    Adds plant assets.

    ConvertPrototypesToAssets(IList<int>)

    Convert indices prototypes toPlantAsset<T>.

    GetNearestInstance(Vector3)

    Nearest index/position of instance from global position

    GetNearestInstanceLocal(Vector3)

    Nearest index/position of instance from terrain position

    GrowFromAssets(params T1[])

    Grows all plants associated toPlantAsset<T>manually.

    GrowFromAssetsAsync(params T1[])

    Grows all plants associated toPlantAsset<T>manually.

    GrowFromInstances(params T2[])

    Grows plant instances manually.

    GrowFromInstancesAsync(params T2[])

    Grows plant instances manually.

    GrowFromPrototypes(params int[])

    Grows all plants associated to prototype manually.

    GrowFromPrototypesAsync(params int[])

    Grows all plants associated to prototype manually.

    RemoveAssets(params T1[])

    Remove plant assets.

    GetTime()

    Time value used to determine the growth timestamp.

    GrowAll()

    Grows all plants manually.

    GrowAllAsync()

    Grows all plants manually.