Class NetworkPrefab
Class that represents a NetworkPrefab
Inheritance
NetworkPrefab
Assembly: solution.dll
Syntax
[Serializable]
public class NetworkPrefab
Fields
Override
The override settings for this NetworkPrefab
Declaration
public NetworkPrefabOverride Override
Field Value
OverridingTargetPrefab
The prefab to replace (override) the source prefab with
Declaration
public GameObject OverridingTargetPrefab
Field Value
Prefab
Asset reference of the network prefab
Declaration
Field Value
SourceHashToOverride
Used when hash is selected for the source prefab to override value (i.e. a direct reference is not possible such as in a multi-project pattern)
Declaration
public uint SourceHashToOverride
Field Value
SourcePrefabToOverride
Used when prefab is selected for the source prefab to override value (i.e. direct reference, the prefab is within the same project)
We keep a separate value as the user might want to have something different than the default Prefab for the SourcePrefabToOverride
Declaration
public GameObject SourcePrefabToOverride
Field Value
Properties
SourcePrefabGlobalObjectIdHash
Declaration
public uint SourcePrefabGlobalObjectIdHash { get; }
Property Value
TargetPrefabGlobalObjectIdHash
Declaration
public uint TargetPrefabGlobalObjectIdHash { get; }
Property Value
Methods
Equals(NetworkPrefab)
Declaration
public bool Equals(NetworkPrefab other)
Parameters
Returns
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A string that represents the current object.
|
Overrides
Validate(int)
Declaration
public bool Validate(int index = -1)
Parameters
Type |
Name |
Description |
int |
index |
|
Returns