Table of Contents

Method RequireSubAsset

Namespace
GrindFest.Content
Assembly
GrindFest.dll

RequireSubAsset<T>(string, string)

A sub-object by name that MUST already be resident — the Get<T>(string) of sub-assets, with the same contract and the same loud failure. Acquire it with GetOrLoadSubAssetAsync<T>(string, string, AssetTier, CancellationToken) (typically when the thing that owns it is set up) and this becomes a dictionary hit.

public static T RequireSubAsset<T>(string parentAddress, string objectName) where T : Object

Parameters

parentAddress string
objectName string

Returns

T

Type Parameters

T