LoginSignup
0
0

More than 1 year has passed since last update.

【Unity】PUN2でPhotonView,PhotonTransformを配置しているのに位置同期がとれない場合に確認する箇所

Last updated at Posted at 2022-02-17

はじめに

PUN2を利用した開発時にPhotonView,PhotonTransformをアタッチしても位置同期がとれないケースがあったので対象方法を記録します。

事象

PhotonView,PhotonTransformをアタッチしたオブジェクトのTransFormのPositionが(0,0,0)となっている。

原因

PhotonView,PhotonTransformをアタッチしているゲームオブジェクトが親オブジェクトを持っている状態でPhotonTransFormのUseLocal(LocalのTransformをWord座標として同期する)のチェックがONにしていた。
image.png

対処方法

PhotonTransFormのUseLocal(LocalのTransformをWord座標として同期する)のチェックを外す。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0