UnloadableObjectRemover Class
Namespace: Stride.Core.AssetsAssembly: Stride.Core.Assets.dll
Removes objects implementing
Derived from UnloadableObjectRemover:
public class UnloadableObjectRemover : AssetVisitorBase, IDataVisitor
Methods
Discover(Object)
public static IReadOnlyList<UnloadableObjectRemover.UnloadableItem> Discover(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<UnloadableObjectRemover.UnloadableItem> |
Run(Object)
public static IReadOnlyList<UnloadableObjectRemover.UnloadableItem> Run(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<UnloadableObjectRemover.UnloadableItem> |
VisitArrayItem(Array, ArrayDescriptor, Int32, Object, ITypeDescriptor)
public override void VisitArrayItem(Array array, ArrayDescriptor descriptor, int index, object item, ITypeDescriptor itemDescriptor)
Parameters
Type | Name | Description |
---|---|---|
System.Array | array | |
Stride.Core.Reflection.ArrayDescriptor | descriptor | |
System.Int32 | index | |
System.Object | item | |
Stride.Core.Reflection.ITypeDescriptor | itemDescriptor |
Overrides
Stride.Core.Reflection.DataVisitorBase.VisitArrayItem(System.Array, Stride.Core.Reflection.ArrayDescriptor, System.Int32, System.Object, Stride.Core.Reflection.ITypeDescriptor)
VisitCollectionItem(IEnumerable, CollectionDescriptor, Int32, Object, ITypeDescriptor)
public override void VisitCollectionItem(IEnumerable collection, CollectionDescriptor descriptor, int index, object item, ITypeDescriptor itemDescriptor)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IEnumerable | collection | |
Stride.Core.Reflection.CollectionDescriptor | descriptor | |
System.Int32 | index | |
System.Object | item | |
Stride.Core.Reflection.ITypeDescriptor | itemDescriptor |
Overrides
Stride.Core.Reflection.DataVisitorBase.VisitCollectionItem(System.Collections.IEnumerable, Stride.Core.Reflection.CollectionDescriptor, System.Int32, System.Object, Stride.Core.Reflection.ITypeDescriptor)
VisitDictionaryKeyValue(Object, DictionaryDescriptor, Object, ITypeDescriptor, Object, ITypeDescriptor)
public override void VisitDictionaryKeyValue(object dictionary, DictionaryDescriptor descriptor, object key, ITypeDescriptor keyDescriptor, object value, ITypeDescriptor valueDescriptor)
Parameters
Type | Name | Description |
---|---|---|
System.Object | dictionary | |
Stride.Core.Reflection.DictionaryDescriptor | descriptor | |
System.Object | key | |
Stride.Core.Reflection.ITypeDescriptor | keyDescriptor | |
System.Object | value | |
Stride.Core.Reflection.ITypeDescriptor | valueDescriptor |
Overrides
Stride.Core.Reflection.DataVisitorBase.VisitDictionaryKeyValue(System.Object, Stride.Core.Reflection.DictionaryDescriptor, System.Object, Stride.Core.Reflection.ITypeDescriptor, System.Object, Stride.Core.Reflection.ITypeDescriptor)
VisitObjectMember(Object, ObjectDescriptor, IMemberDescriptor, Object)
public override void VisitObjectMember(object container, ObjectDescriptor containerDescriptor, IMemberDescriptor member, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | container | |
Stride.Core.Reflection.ObjectDescriptor | containerDescriptor | |
Stride.Core.Reflection.IMemberDescriptor | member | |
System.Object | value |
Overrides
Stride.Core.Reflection.DataVisitorBase.VisitObjectMember(System.Object, Stride.Core.Reflection.ObjectDescriptor, Stride.Core.Reflection.IMemberDescriptor, System.Object)
Inherited Members
Stride.Core.Reflection.DataVisitorBase.TypeDescriptorFactory
Stride.Core.Reflection.DataVisitorBase.CustomVisitors
Stride.Core.Reflection.DataVisitorBase.CurrentPath
Stride.Core.Reflection.DataVisitorBase.AttributeRegistry
Stride.Core.Reflection.DataVisitorBase.Reset()
Stride.Core.Reflection.DataVisitorBase.Visit(System.Object)
Stride.Core.Reflection.DataVisitorBase.Visit(System.Object, Stride.Core.Reflection.ITypeDescriptor)
Stride.Core.Reflection.DataVisitorBase.VisitNull()
Stride.Core.Reflection.DataVisitorBase.VisitPrimitive(System.Object, Stride.Core.Reflection.PrimitiveDescriptor)
Stride.Core.Reflection.DataVisitorBase.VisitObject(System.Object, Stride.Core.Reflection.ObjectDescriptor, System.Boolean)
Stride.Core.Reflection.DataVisitorBase.VisitArray(System.Array, Stride.Core.Reflection.ArrayDescriptor)
Stride.Core.Reflection.DataVisitorBase.VisitCollection(System.Collections.IEnumerable, Stride.Core.Reflection.CollectionDescriptor)
Stride.Core.Reflection.DataVisitorBase.VisitDictionary(System.Object, Stride.Core.Reflection.DictionaryDescriptor)
Stride.Core.Reflection.DataVisitorBase.CanVisit(System.Object)