Show / Hide Table of Contents

Class NetworkObject

The Network Object synchronizes the transform of gameObject across the network.
網絡物件,用作在網絡中同步遊戲物件的 Transform。

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
UnityEngine.Networking.NetworkBehaviour
NetworkObject
NetworkUser
Namespace: Votanic.vNet.Networking
Assembly: Votanic.vNet.dll
Syntax
[AddComponentMenu("")]
public class NetworkObject : NetworkBehaviour

Fields

angleBeforeSnap

The angle change before snap.
最大平滑變動角度。

Declaration
[Tooltip("The angle change before snap.\n最大平滑變動角度。")]
[Range(0F, 90F)]
public float angleBeforeSnap
Field Value
Type Description
System.Single

angleThreshold

Angle threshold.
角度閾值。

Declaration
[Tooltip("Angle threshold.\n角度閾值。")]
[Range(0F, 30F)]
public float angleThreshold
Field Value
Type Description
System.Single

autoAddTransform

Auto add target transform setting.
自動加入目標 Transform 設定。

Declaration
[Tooltip("Auto add target transform setting.\n自動加入目標 Transform 設定。")]
public AutoAddTransform autoAddTransform
Field Value
Type Description
AutoAddTransform

distanceBeforeSnap

The distance change before snap.
最大平滑變動距離。

Declaration
[Tooltip("The distance change before snap.\n最大平滑變動距離。")]
[Range(0F, 10F)]
public float distanceBeforeSnap
Field Value
Type Description
System.Single

isKinematic

Sync field for new joined network user to get rigidbody kinematic state.
給新加入網絡用戶同步的欄,以獲取剛體運動狀態。

Declaration
[HideInInspector]
public bool isKinematic
Field Value
Type Description
System.Boolean

movementInterpolation

Movement interpolation.
移動插補。

Declaration
[Header("[Interpolation]")]
[Tooltip("Movement interpolation.\n移動插補。")]
[Range(0F, 1F)]
public float movementInterpolation
Field Value
Type Description
System.Single

movementThreshold

Movement threshold.
移動閾值。

Declaration
[Tooltip("Movement threshold.\n移動閾值。")]
[Range(0F, 2F)]
public float movementThreshold
Field Value
Type Description
System.Single

rotationInterpolation

Rotation interpolation.
旋轉插補。

Declaration
[Tooltip("Rotation interpolation.\n旋轉插補。")]
[Range(0F, 1F)]
public float rotationInterpolation
Field Value
Type Description
System.Single

scaleBeforeSnap

The scale change before snap.
最大平滑變動大小。

Declaration
[Tooltip("The scale change before snap.\n最大平滑變動大小。")]
[Range(0F, 10F)]
public float scaleBeforeSnap
Field Value
Type Description
System.Single

scaleInterpolation

Scale interpolation.
縮放插補。

Declaration
[Tooltip("Scale interpolation.\n縮放插補。")]
[Range(0F, 1F)]
public float scaleInterpolation
Field Value
Type Description
System.Single

scaleThreshold

Scale threshold.
大小閾值。

Declaration
[Tooltip("Scale threshold.\n大小閾值。")]
[Range(0F, 1F)]
public float scaleThreshold
Field Value
Type Description
System.Single

sendFrameGap

The gap between each synchronization.
每次同步的間隔。

Declaration
[Header("[Sync]")]
[Tooltip("The gap between each synchronization.\n每次同步的間隔。")]
[Range(0F, 10F)]
public int sendFrameGap
Field Value
Type Description
System.Int32

Sync

Sync the network object.
同步網絡物件。

Declaration
public NetworkObject.OnSync Sync
Field Value
Type Description
NetworkObject.OnSync

syncTransform

The synchronizes part of tranform.
同步的變換部份。

Declaration
[Tooltip("The synchronizes part of tranform.\n同步的變換部份。")]
public SyncTransform syncTransform
Field Value
Type Description
SyncTransform

target

The target transforms for synchronization.
同步的目標 Transform。

Declaration
[Header("[Transform]")]
[Tooltip("The target transforms for synchronization.\n同步的目標 Transform。")]
public List<Transform> target
Field Value
Type Description
System.Collections.Generic.List<UnityEngine.Transform>

thresholdMovementPrediction

Movement threshold prediction.
移動閾值預測。

Declaration
[Tooltip("Movement threshold prediction.\n移動閾值預測。")]
public float thresholdMovementPrediction
Field Value
Type Description
System.Single

thresholdRotationPrediction

Rotation threshold prediction.
角度閾值預測。

Declaration
[Tooltip("Rotation threshold prediction.\n角度閾值預測。")]
public float thresholdRotationPrediction
Field Value
Type Description
System.Single

thresholdScalePrediction

Scale threshold prediction.
大小閾值預測。

Declaration
[Tooltip("Scale threshold prediction.\n大小閾值預測。")]
public float thresholdScalePrediction
Field Value
Type Description
System.Single

Properties

waitingAuthority

Waiting the authority and pause synchronization.
等待權限及暫停同步。

Declaration
public bool waitingAuthority { get; set; }
Property Value
Type Description
System.Boolean

Methods

FixedUpdate()

Declaration
[Obfuscation(Exclude = true)]
public virtual void FixedUpdate()

Start()

Declaration
[Obfuscation(Exclude = true)]
public virtual void Start()
In This Article
Back to top Generated by DocFX