Photon Fusion 1.1.9

Public Member Functions | Static Public Attributes | List of all members
AccuracyDefaults Class Reference

Class that contains global accuracy information. Built-in named defaults can be edited, or custom named defaults can be created. These defaults allow you to change accuracy settings across an entire project. More...

Public Member Functions

Accuracy GetAccuracyOrThrow (string tag)
 
bool TryGetAccuracy (int hash, out Accuracy accuracy)
 Attempts to get an accuracy from a hash value.
 

Static Public Attributes

const string DEFAULT = "Default"
 The named built-in general default.
 
const float DEFAULT_ACCURACY = 0.001f
 The standard default fall back value for Accuracy.
 
const float DEFAULT_UNCOMPRESSED_VALUE = 0
 The fixed value that represents uncompressed.
 
const string NORMALIZED_TIME = "NormalizedTime"
 The named built-in default for NormalizedTime. This value is used by built-in components like NetworkMecanimAnimator, but may be used for your own components as well.
 
const string POSITION = "Position"
 The named built-in default for Position. This value is used by built-in components like NetworkTransform and NetworkRigidbody, but may be used for your own components as well.
 
const string ROTATION = "Rotation"
 The named built-in default for Rotation. This value is used by built-in components like NetworkTransform and NetworkRigidbody, but may be used for your own components as well.
 
const string UNCOMPRESSED = "Uncompressed"
 The named built-in default for Uncompressed. This cannot be changed and will always have a value of 0.
 

Detailed Description

Class that contains global accuracy information. Built-in named defaults can be edited, or custom named defaults can be created. These defaults allow you to change accuracy settings across an entire project.

These values can be changed in the NetworkProjectConfig.

Member Function Documentation

◆ TryGetAccuracy()

bool TryGetAccuracy ( int  hash,
out Accuracy  accuracy 
)

Attempts to get an accuracy from a hash value.

Returns
Returns false if the hash is invalid (hash 0 is considered valid, and remaps to ZeroHashAccuracyRemap)