Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

UE3:FoliageComponent (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT3 Object >> Component >> ActorComponent >> PrimitiveComponent >> FoliageComponent
Package: 
Engine
This class in other games:
UDK

Copyright 2007 Epic Games, Inc. All Rights Reserved.

Properties

DirectionalStaticLightingScale

Type: float

Array size: 3

Modifiers: const

The scale factors applied to the directional static lighting.

Instances

Type: array<GatheredFoliageInstance>

Modifiers: const

The component's foliage instances.

InstanceStaticMesh

Type: StaticMesh

Modifiers: const

The mesh which is drawn for each foliage instance.

Material

Type: MaterialInterface

Modifiers: const

The material applied to the foliage instance mesh.

MaxDrawRadius

Type: float

The maximum distance to draw foliage instances at.

MaxScale

Type: Object.Vector

The minimum scale to draw foliage instances at.

MinScale

Type: Object.Vector

The minimum scale to draw foliage instances at.

MinTransitionRadius

Type: float

The minimum distance to start scaling foliage instances away at.

SimpleStaticLightingScale

Type: float

Array size: 3

Modifiers: const

The scale factors applied to the simple static lighting.

StaticallyIrrelevantLights

Type: array<Object.Guid>

Modifiers: const

The statically irrelevant lights for all the component's foliage instances.

StaticallyRelevantLights

Type: array<Object.Guid>

Modifiers: const

The lights included in the foliage's static lighting.

SwayScale

Type: float

A scale for the effect of wind on the foliage mesh.

Default values

Property Value
bAcceptsLights True
bForceDirectLightMap True
bUsePrecomputedShadows True

Structs

FoliageInstanceBase

Modifiers: native

Information about an instance of the component's foliage mesh that is common to all foliage instance types.

Object.Vector Location 
The instance's world-space location.
Object.Vector XAxis 
The instance's X Axis.
Object.Vector YAxis 
The instance's Y Axis.
Object.Vector ZAxis 
The instance's Z Axis.

GatheredFoliageInstance

Extends: FoliageInstanceBase

Modifiers: native

The information for each instance that is gathered during lighting and saved.

Object.Color StaticLighting[4]  
The static lighting received by the instance. The number of coefficients corresponds to NUM_GATHERED_LIGHTMAP_COEF in native.