AttachedReference Class
Namespace: Stride.Core.SerializationAssembly: Stride.Core.Serialization.dll
Stores the object reference information, so that it is easy to work on partially loaded or CPU version of assets with ContentManager.
public class AttachedReference : IReference
Name | Description | |
---|---|---|
Fields | ||
Data | Data representation (useful if your object is a GPU object but you want to manipulate a CPU version of it). This needs to be manually interpreted by a custom DataSerializer<T> implementation. |
|
Id | The asset unique identifier. |
|
IsProxy | If yes, this object won't be recursively saved in a separate chunk by ContentManager. Use this if you only care about the Url reference. |
|
Url | The asset URL of the referenced data. |
|
Methods | ||
ToString() | ||
Explicit Interface Implementations | ||
IReference.Id | ||
IReference.Location |
Fields
Data
Data representation (useful if your object is a GPU object but you want to manipulate a CPU version of it). This needs to be manually interpreted by a custom DataSerializer<T> implementation.
public object Data
Field Value
Type | Description |
---|---|
System.Object |
Id
The asset unique identifier.
public AssetId Id
Field Value
Type | Description |
---|---|
AssetId |
IsProxy
If yes, this object won't be recursively saved in a separate chunk by ContentManager. Use this if you only care about the Url reference.
public bool IsProxy
Field Value
Type | Description |
---|---|
System.Boolean |
Url
The asset URL of the referenced data.
public string Url
Field Value
Type | Description |
---|---|
System.String |
Methods
ToString()
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Explicit Interface Implementations
IReference.Id
AssetId IReference.Id { get; }
Returns
Type | Description |
---|---|
AssetId |
IReference.Location
string IReference.Location { get; }
Returns
Type | Description |
---|---|
System.String |