Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrain module · member function

UOrreryTerrainEditPolicy::

CanEdit

Experimental

Whether Controller may make this edit.

Declaration

UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category="Orrery|Terrain|Net")
bool CanEdit(APlayerController* Controller, EOrreryTerrainEditKind Kind, const FBox& Bounds) const;
Header
#include "Net/OrreryTerrainEditPolicy.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrain"); in your module’s Build.cs.
Stability
Experimental: supported, may change in a minor version, with a changelog line.
Thread
Game thread, on the server only; called once per brush step, so keep it cheap. (the rule of UOrreryTerrainEditPolicy)
Blueprint
Overridden in a Blueprint (My Blueprint, Functions, Override); no node of its own.

Parameters

NameTypeDefaultMeaning
ControllerAPlayerController*—

The requesting player's controller on the server; null when the link has none.

KindEOrreryTerrainEditKind—

What the request asks for: Stamp for a height stamp, Sculpt or Paint for other brush steps.

Boundsconst FBox&—

World bounds of the edit, cm: a brush step's footprint box (its disc, or for a masked brush or a stamp the mask's rotated rectangle, which can be kilometres across), a feature's footprint (for a Replace, once with the old footprint and once with the new); empty for undo and redo.

Returns

true to let it apply.