Photon Fusion 1.1.12

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. More...
 

Static Public Attributes

const string DEFAULT = "Default"
 The named built-in general default. More...
 
const float DEFAULT_ACCURACY = 0.001f
 The standard default fall back value for Accuracy. More...
 
const float DEFAULT_UNCOMPRESSED_VALUE = 0
 The fixed value that represents uncompressed. More...
 
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. More...
 
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. More...
 
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. More...
 
const string UNCOMPRESSED = "Uncompressed"
 The named built-in default for Uncompressed. This cannot be changed and will always have a value of 0. More...
 

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)

Member Data Documentation

◆ DEFAULT

const string DEFAULT = "Default"
static

The named built-in general default.

◆ DEFAULT_ACCURACY

const float DEFAULT_ACCURACY = 0.001f
static

The standard default fall back value for Accuracy.

◆ DEFAULT_UNCOMPRESSED_VALUE

const float DEFAULT_UNCOMPRESSED_VALUE = 0
static

The fixed value that represents uncompressed.

◆ NORMALIZED_TIME

const string NORMALIZED_TIME = "NormalizedTime"
static

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.

◆ POSITION

const string POSITION = "Position"
static

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.

◆ ROTATION

const string ROTATION = "Rotation"
static

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.

◆ UNCOMPRESSED

const string UNCOMPRESSED = "Uncompressed"
static

The named built-in default for Uncompressed. This cannot be changed and will always have a value of 0.