Method group is Obsolete

NetworkView.owner

切换到手册
Obsolete public NetworkPlayer owner ;

描述

拥有该网络视图的 NetworkPlayer

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnNetworkInstantiate(NetworkMessageInfo info) { NetworkView nView = GetComponent<NetworkView>(); if (!nView.isMine) Debug.Log("New object instantiated by " + nView.owner); } }