NetworkPrefabRef.
More...
Inherits INetworkStruct, IEquatable< NetworkPrefabRef >, and IComparable< NetworkPrefabRef >.
|
int | CompareTo (NetworkPrefabRef other) |
| Compare the NetworkPrefabRef to another NetworkPrefabRef.
|
|
bool | Equals (NetworkPrefabRef other) |
| Check if the NetworkPrefabRef is equal to another NetworkPrefabRef.
|
|
override bool | Equals (object obj) |
| Check if the NetworkPrefabRef is equal to another object.
|
|
override int | GetHashCode () |
| Get the hashcode for a NetworkPrefabRef.
|
|
| NetworkPrefabRef (byte *guid) |
| Create a NetworkPrefabRef from a byte*.
|
|
| NetworkPrefabRef (byte[] guid) |
| Create a NetworkPrefabRef from a byte array.
|
|
| NetworkPrefabRef (long data0, long data1) |
| Create a new NetworkPrefabRef.
|
|
| NetworkPrefabRef (string guid) |
| Create a new NetworkPrefabRef.
|
|
override string | ToString () |
| Returns a string representation of the NetworkPrefabRef.
|
|
string | ToString (string format) |
| Returns a string representation of the NetworkPrefabRef.
|
|
string | ToUnityGuidString () |
| Returns a string representation of the NetworkPrefabRef.
|
|
|
fixed long | RawGuidValue [2] |
| The Raw Guid Value of the NetworkPrefabRef.
|
|
|
const int | ALIGNMENT = 4 |
| The alignment of the NetworkPrefabRef.
|
|
const int | SIZE = 16 |
| The Size of the NetworkPrefabRef in bytes.
|
|
|
static NetworkPrefabRef | Empty [get] |
| The default value of a NetworkPrefabRef.
|
|
bool | IsValid [get] |
| Signal if the NetworkPrefabRef is valid.
|
|
NetworkPrefabRef.
A decoupled NetworkObject prefab reference. Internally stored as a GUID.
◆ NetworkPrefabRef() [1/4]
Create a new NetworkPrefabRef.
- Parameters
-
◆ NetworkPrefabRef() [2/4]
Create a new NetworkPrefabRef.
- Parameters
-
data0 | Data0 of the Guid |
data1 | Data1 of the Guid |
◆ NetworkPrefabRef() [3/4]
Create a NetworkPrefabRef from a byte array.
- Parameters
-
guid | The byte array to create the NetworkPrefabRef from |
◆ NetworkPrefabRef() [4/4]
Create a NetworkPrefabRef from a byte*.
- Parameters
-
guid | The byte* to create the NetworkPrefabRef from |
◆ CompareTo()
Compare the NetworkPrefabRef to another NetworkPrefabRef.
- Parameters
-
other | The other NetworkPrefabRef to compare against |
- Returns
- 0 if the NetworkPrefabRef are equal, -1 if this NetworkPrefabRef is less than the other, 1 if this NetworkPrefabRef is greater than the other
◆ Equals() [1/2]
Check if the NetworkPrefabRef is equal to another NetworkPrefabRef.
- Parameters
-
other | The other NetworkPrefabRef to check against |
- Returns
- True if the NetworkPrefabRefs are equal, false otherwise
◆ Equals() [2/2]
override bool Equals |
( |
object |
obj | ) |
|
Check if the NetworkPrefabRef is equal to another object.
- Parameters
-
obj | The other object to check against |
- Returns
- True if the objects are equal, false otherwise
◆ operator Guid()
Implicit conversion from NetworkPrefabRef to Guid.
- Parameters
-
guid | NetworkPrefabRef to convert from |
- Returns
- Guid
◆ operator NetworkObjectGuid()
Explicit conversion from NetworkPrefabRef to NetworkObjectGuid.
- Parameters
-
t | NetworkPrefabRef to convert from |
- Returns
- NetworkObjectGuid
◆ operator NetworkPrefabRef()
Implicit conversion from Guid to NetworkPrefabRef.
- Parameters
-
- Returns
- NetworkPrefabRef
◆ operator!=()
Compare two NetworkPrefabRef.
- Returns
- True if the NetworkPrefabRef are not equal, false otherwise
◆ operator==()
Compare two NetworkPrefabRef.
- Returns
- True if the NetworkPrefabRef are equal, false otherwise
◆ Parse()
Parse a NetworkPrefabRef from a string.
- Parameters
-
- Returns
- The parsed NetworkPrefabRef.
◆ TryParse()
Try to parse a string into a NetworkPrefabRef.
- Parameters
-
str | String to parse |
guid | Parsed NetworkPrefabRef |
- Returns
- True if the string was parsed successfully, false otherwise