Class AttachedReferenceManager
- Namespace
- Stride.Core.Serialization
- Assembly
- Stride.Core.Serialization.dll
Manage object reference information externally, not stored in the object but in a separate Attached
- Inheritance
-
Attached
Reference Manager
Methods
CreateProxyObject(Type, AssetId, string)
Creates a proxy object with Attached
Parameters
Returns
CreateProxyObject<T>(AssetId, string)
Creates a proxy object with Attached
Parameters
Returns
- T
Type Parameters
T
CreateProxyObject<T>(IReference)
Creates a proxy object with Attached
Parameters
reference
IReferenceThe content reference.
Returns
- T
T.
Type Parameters
T
Exceptions
- Argument
Null Exception reference
GetAttachedReference(object)
Gets the reference info of attached to a given object, if it exists.
Parameters
obj
objectThe object for which to get the attached reference. Can be null, in this case this method returns null.
Returns
- Attached
Reference The Attached
Reference attached to the given object if available,null
otherwise.
GetOrCreateAttachedReference(object)
Gets or creates the object reference info of a given object.
Parameters
obj
objectThe object.
Returns
GetUrl(object)
Gets the URL of a given object.
Parameters
obj
objectThe object.
Returns
- string
The URL.
SetUrl(object, string)
Sets the URL of a given object.