Resource

Summary

Definition

Namespace: SDT4.Managed.Core.Asset
Assembly: SDT4.Managed.Core.dll

abstract class Resource
Inheritance:

Object ➔ Resource

Implements:

IDisposable

Fields

Name Type Description
protected _isDisposed Boolean

Properties

Name Type Description
public get; Asset AssetID
public get; protected set; ControlBlock IntPtr
protected get; ResourcePtr IntPtr Mutable native pointer. This should not change in a standalone build, however during editor states, this may change upon asset modifications or reloads.
public get; References Int32 Returns the number of references to this asset. This cannot be manually counted, as this is tightly managed by the native engine, and the C# script runtime. References are tracked as follows:
    Components hold strong references
    Asset dependencies hold strong references (e.g. Materials holding references to Textures)
    Resource references within C#. Note in C#, the reference counting is managed by the garbage collector, meaning that resources held in C# may be kept alive longer than usual.

Methods

protected virtual Void Dispose(Boolean disposing)

Parameters:


protected virtual Void Finalize()


public Void Dispose()


public virtual Boolean Equals(Object? obj)

Parameters:

Returns:


public virtual Int32 GetHashCode()

Returns:


public virtual String ToString()

Returns: