UAutoMeshEngineDebugComponent
UAutoMeshEngineDebugComponent belongs to the AutoMesh Engine runtime module.
Dolore cillum minim esse enim occaecat esse nulla nulla magna. Esse nisi sed irure irure aute magna nulla. Elit aliquip enim fugiat ipsum eiusmod minim duis esse reprehenderit. Exercitation laboris exercitation commodo exercitation pariatur eiusmod labore.
Declaration
1# Plugin configuration (AutoMesh Engine.yaml)
2plugin:
3 name: AutoMesh Engine
4 version: 2.0
5 settings:
6 max_pool_size: 100
7 tick_rate: 60.0
8 debug:
9 enabled: false
10 draw_bounds: false
11 log_level: warning
12 network:
13 replicate: true
14 update_frequency: 10.0
Members
| Parameter | Type | Default | Description |
|---|---|---|---|
| MaxPoolSize | int32 | 100 | Maximum number of pooled objects |
| TickRate | float | 60.0 | Update frequency in Hz |
| bAutoActivate | bool | true | Activate on BeginPlay |
| LogVerbosity | ELogVerbosity | Warning | Minimum log level |
| ReplicationMode | ERepMode | Reliable | Network replication strategy |
Example
1UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
2class AUTO_MESH_ENGINE_API UMyComponent : public UActorComponent
3{
4 GENERATED_BODY()
5
6public:
7 UMyComponent();
8
9 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Settings")
10 float UpdateInterval = 0.1f;
11
12 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Settings")
13 bool bAutoActivate = true;
14
15 UFUNCTION(BlueprintCallable, Category = "AutoMesh Engine")
16 void SetConfiguration(const FMyConfig& Config);
17
18protected:
19 virtual void BeginPlay() override;
20 virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
21
22private:
23 FMyConfig CurrentConfig;
24 float TimeSinceLastUpdate = 0.0f;
25};