Table of Contents

Class AssetLoadProperty<TAsset>

Namespace
KSP.Assets
Assembly
Assembly-CSharp.dll
public class AssetLoadProperty<TAsset> : IDisposable where TAsset : Object

Type Parameters

TAsset
Inheritance
AssetLoadProperty<TAsset>
Implements
Inherited Members
Extension Methods

Constructors

AssetLoadProperty(string)

public AssetLoadProperty(string assetKeyToLoad)

Parameters

assetKeyToLoad string

Fields

AssetKeyToLoad

public readonly string AssetKeyToLoad

Field Value

string

AssetProp

public readonly Property<TAsset> AssetProp

Field Value

Property<TAsset>

Properties

AssetHandleRefCount

public int AssetHandleRefCount { get; }

Property Value

int

LoadCompleteOrPending

public bool LoadCompleteOrPending { get; }

Property Value

bool

Methods

DecrementHandleRefCount(bool)

public void DecrementHandleRefCount(bool doUnloadIfZero = false)

Parameters

doUnloadIfZero bool

Dispose()

public void Dispose()

DoAssetLoadAsync()

public IProperty<TAsset> DoAssetLoadAsync()

Returns

IProperty<TAsset>

DoAssetLoadWaitForCompletion()

public TAsset DoAssetLoadWaitForCompletion()

Returns

TAsset

DoAssetRelease(bool)

public void DoAssetRelease(bool ignoreHandleRefCount = false)

Parameters

ignoreHandleRefCount bool

GetLoadHandle()

public AssetLoadPropertyHandle<TAsset> GetLoadHandle()

Returns

AssetLoadPropertyHandle<TAsset>

IncrementHandleRefCount()

public void IncrementHandleRefCount()