Navigation
API > API/Plugins > API/Plugins/LandscapePatch
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- ULandscapePatchComponent
- ULandscapeCircleHeightPatch
- ULandscapeTexturePatch
References
| Module | LandscapePatch |
| Header | /Engine/Plugins/Experimental/LandscapePatch/Source/LandscapePatch/Public/LandscapePatchComponent.h |
| Include | #include "LandscapePatchComponent.h" |
Syntax
UCLASS&40;Blueprintable, BlueprintType, Abstract&41;
class ULandscapePatchComponent : public USceneComponent
Remarks
Base class for landscape patches: components that can be attached to meshes and moved around to make the meshes affect the landscape around themselves.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsEnabled | When false, patch does not affect the landscape. Useful for temporarily disabling the patch. | |
| bool | bLoadedButNotYetRegistered | This is true for existing height patches right after they are loaded, so that we can ignore the first OnRegister call. | |
| bool | bWasCopy | Determines whether the height patch was made by copying a different height patch. | |
| TSoftObjectPtr< ALandscape > | Landscape | ||
| TSoftObjectPtr< ALandscapePatchManager > | PatchManager |
Constructors
| Type | Name | Description | |
|---|---|---|---|
ULandscapePatchComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| bool | AffectsWeightmapLayer
(
const FName& InLayerName |
||
| void | ApplyComponentInstanceData
(
FLandscapePatchComponentInstanceData* ComponentInstanceData |
||
| FTransform | |||
| ALandscapePatchManager * | |||
| void | Initialize_Native
(
const FTransform& InLandscapeTransform, |
||
| bool | IsEnabled () |
||
| void | MoveToTop () |
Move the patch to be the last processed patch in the current patch manager. | |
| UTextureRenderTarget2D * | RenderLayer_Native
(
const FLandscapeBrushParameters& InParameters |
||
| void | RequestLandscapeUpdate
(
bool bInUserTriggeredUpdate |
||
| void | SetIsEnabled
(
bool bEnabledIn |
Allows the patch to be disabled, so that it no longer affects the landscape. | |
| void | SetLandscape
(
ALandscape* NewLandscape |
||
| void | SetPatchManager
(
ALandscapePatchManager* NewPatchManager |
Overridden from USceneComponent
| Type | Name | Description | |
|---|---|---|---|
| void | OnUpdateTransform
(
EUpdateTransformFlags UpdateTransformFlags, |
USceneComponent. |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | GetActorDescProperties
(
FPropertyPairsMap& PropertyPairsMap |
Add properties to the component owner's actor desc. | |
| TStructOnScope< FActorComponentInstanceData > | Called before we throw away components during RerunConstructionScripts, to cache any data we wish to persist across that operation | ||
| void | UActorComponent. | ||
| void | OnComponentDestroyed
(
bool bDestroyingHierarchy |
Called when a component is destroyed | |
| void | OnRegister () |
Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| bool | IsEditorOnly () |
Returns whether this component is an editor-only object or not | |
| bool | Called during async load to determine if PostLoad can be called on the loading thread. | ||
| bool | Called during saving to determine the load flags to save with the object. | ||
| bool | Called during saving to determine the load flags to save with the object. | ||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
UObject. | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | IsAffectingWeightmapLayer
(
const FName& InLayerName |
Use AffectsWeightmapLayer |