Unity-hálózati jogosultságok
A hiteles döntés helyén ellenőrzi a Unity többjátékos akciókat. Azonosítót, tulajdonjogot, hatótávot és erőforrást vizsgál a kliens támadásról vagy átadásról szóló állításának elfogadása helyett.
unity-network-authority-validation
Ezt a skillt használó csapattagok
Mikor hasznos?
Akkor használd, ha távoli kérés értékes állapotot módosít vagy tulajdonátadáskor azonnal meg kell szűnnie a régi jognak.
Miben segít neked?
- Ellenőrzi a küldőt, tulajdont, tagságot és engedett átmenetet.
- Hiteles oldalon újraszámolja a távolságot, várakozást és erőforrásigényt.
- Elkülöníti a privát állapot küldését a vizuális elrejtéstől.
Például ezt kérheted
Védd a Unity-képességkérést módosított klienssel szemben. A döntő oldalon ellenőrizd a küldő karakterét, hatótávját, visszatöltődését és energiáját. Tulajdonváltás után egy régi kérés ne sebezzen és ne költsön erőforrást; az ellenfél titkos adata se kerüljön a klienshez pusztán azért, mert a felület elrejti.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
Multiplayer Authority Validation
Map trusted server/host and client responsibilities in the actual topology. Identify the authoritative owner of movement, inventory, combat, progression and spawning.
- Treat RPC/request payloads as untrusted. Validate sender identity, object ownership, session membership, target lifetime, legal state transition and permitted rate before applying an effect.
- Recompute or bound gameplay claims at the authority: distance, cooldown, resource cost, movement limits and damage eligibility. Client animation or a reported hit is not authorization by itself.
- Use supported serialization with size/count limits and reject malformed or stale requests safely. Define duplicate/sequence handling for operations that must happen once.
- Separate network visibility/interest from UI hiding; avoid sending private state to a participant merely because it is hidden visually.
- Handle ownership transfer and disconnect atomically according to the stack's lifecycle. A previous owner must not keep an effective capability after transfer.
- Keep credentials, join secrets and personal data out of diagnostic traces. Use existing platform/service authentication rather than inventing a credential scheme.
Check unauthorized sender, stale object, duplicate resource spend, excess rate, invalid state and late ownership transfer. Explain the exact enforced boundary and residual assumptions.
Reference: installed Netcode for GameObjects documentation. Network authority is a gameplay contract; never claim comprehensive anti-cheat from these checks alone.
Csomagban lévő fájlok 2
LICENSE.txtSKILL.md
