SDT0606: Non-replicable Script Target
| Property | Value |
|---|---|
| Rule ID | SDT0606 |
| Title | Non-replicable Script Target |
| Category | Network |
| Severity | Error |
Cause
A class is decorated with the [Replicate] attribute, but it does not inherit from ActorScript or PropScript.
Rule Description
Only objects deeply integrated with the game world's lifecycle management—specifically ActorScript and PropScript types—possess the foundational network identities required to synchronize state across the network cluster.
How to Fix Violations
Change the base class inheritance to ActorScript or PropScript, or remove the [Replicate] attribute.
Violation:
[Replicate]
public class BasicManager // Base class defaults to standard object
{
}
Fix:
[Replicate]
public class BasicManager : ActorScript
{
}
When to Suppress Warnings
Danger
Do not suppress this error. Non-script entities lack the underlying network tick handles and will cause critical engine tracking errors at runtime.