Navigation
API > API/Runtime > API/Runtime/Landscape > API/Runtime/Landscape/ULandscapeInfo
Description
Landscapes are a bit special in that they contain derived data within their source data, which can be updated on-the-fly depending on many external factors (e.g. a procedural edit layer can invalidate some data on load). Depending on project preference, the modifications can be either automatically taken into account (leading to landscape actors becoming dirty on load) or manually by the user (i.e. invalidated landscape actors are not made dirty on load but the user is required to save the modified actors through a Build menu action). Therefore we use these 2 functions as a replacement to Modify or MarkPackageDirty in cases where we don't know if the modification was initiated by the user : See UObject::Modify
| Name | ModifyObject |
| Type | function |
| Header File | /Engine/Source/Runtime/Landscape/Classes/LandscapeInfo.h |
| Include Path | #include "LandscapeInfo.h" |
| Source | /Engine/Source/Runtime/Landscape/Private/Landscape.cpp |
bool ModifyObject
(
UObject * InObject,
bool bAlwaysMarkDirty
)
true if the object could not be marked dirty but has been added to the list of ModifiedPackages
Parameters
| Name | Remarks |
|---|---|
| InObject | Object being modified. Must be either a ALandscapeProxy or one of its inner objects |
| bAlwaysMarkDirty | if true, marks the package dirty even if we aren't currently recording an active undo/redo transaction |