Unity-Technologies / Unity-Technologies/com.unity.netcode.gameobjects
Is it posible to implement ServerRewind with NetworkTransform?
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 2.3k
- フォーク
- 461
- 平均マージ
- 3日 16時間
- マージ済み PR(30日)
- 20
説明
Hello, im currently studying Unity and I started not so long ago using Netcode for GameObjects.
I started following the Unity docs and everything went smoothly until I faced NetworkTransforms, I tried movement with server autority and client autority, witch both worked fine, however I was unable to make a ServerRewind movement method.
I tried having multiple NetworkTransforms with changed autorities (with OnIsServerAuthoritative true and false) and changing them in runtime, needless to say, this didn't work nor changing the OnIsServerAuthoritative method via variable as the method seems to only been called once.
I searched for ways to implement ServerRewind in Netcode for GameObjects but I found zero information about it.
Eventually I managed to do it using 2 NetworkVariables, with write permisions both on server and client and exchanging them values whenever needed (I have an example in my repo if anyone is curious).
I know that ServerRewind is currently on the roadmap, but as it is currently, is there any way for implementing it with NetworkTransforms?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
NetworkTransform のドキュメントと ServerRewind のロードマップ項目から始め、リンク先のリポジトリにある 2 つの NetworkVariable を使った例と、それらの authority の動作を比較してください。実行時の authority の変更と rewind のサポートが意図されたものかどうかを判断し、サポートされているアプローチ、または必要な NetworkTransform の変更範囲を文書化してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, unity
- 領域
- game-dev, networking
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100