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