用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:networkviewid:networkviewid

NetworkViewID 网络视图ID

struct in UnityEngine

Description 描述

The NetworkViewID is a unique identifier for a network view instance in a multiplayer game.

NetworkViewID 是网络视图在多人游戏中的唯一身份标识。

It is imporatant that this is a unique number accross all clients and that they can generate these numbers themselves, or else network synchronization will break.

对于所有的客户端来说这唯一的数字是重要的,并且它们可以自己生成这些数字,或者打破其他网络同步。

Static Variables 静态变量

unassignedRepresents an invalid network view ID.
代表无效的网络视图ID。

Variables 变量

isMineTrue if instantiated by me.
如果是我的实例化则返回true。
ownerThe NetworkPlayer who owns the NetworkView. Could be the server.
该网络视图是否是网络玩家的。可能是服务器。

Public Functions 公共函数

ToStringReturns a formatted string with details on this NetworkViewID.
返回该网络视图ID的格式化字符串。

Operators 运算符

operator!=Returns true if two NetworkViewIDs are not identical.
如果两个网络视图ID不相同那么返回true。
operator==Returns true if two NetworkViewIDs are identical.
如果两个网络视图的ID是相同的那么返回true。
script/unityengine/classes/networkviewid/networkviewid.txt · 最后更改: 2016/08/02 05:27 (外部编辑)