用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:networkview:networkview

NetworkView 网络视图

class in UnityEngine/Inherits from: Behaviour

Description 描述

The network view is the binding material of multiplayer games.

网络视图是多人游戏的连接材质。

With this you can define exactly what is to be synchronized over the network and how it should be done. Game objects can have NetworkView components which can be configured to watch other components for the object. For more information see the Network View manual page and the component reference page.

使用该功能你可以准确在网络上同步定义什么和它应该如何去做。游戏对象可以包含NetworkView组件,该组件可以配置去看见其他的对象。更多信息请参考网络视图手册页和组件参考页。

Variables

groupThe network group number of this network view.
该网络视图的网络组数量。
isMineIs the network view controlled by this object?
该对象是否受网络视图控制?
observedThe component the network view is observing.
观察网络视图组件。
ownerThe NetworkPlayer who owns this network view.
拥有该网络视图的网络玩家。
stateSynchronizationThe type of NetworkStateSynchronization set for this network view.
NetworkStateSynchronization 设置为该网络视图类型。
viewIDThe ViewID of this network view.
该网络视图的视图ID。

Public Functions

SetScopeSet the scope of the network view in relation to a specific network player.
在指定关系的网络玩家中设置网络视图的视野范围。

Static Functions

FindFind a network view based on a NetworkViewID.
基于NetworkViewID查找网络。
script/unityengine/classes/networkview/networkview.txt · 最后更改: 2016/08/02 05:28 (外部编辑)