Table of Contents

Method TryGetSubAsset

Namespace
GrindFest.Content
Assembly
GrindFest.dll

TryGetSubAsset<T>(string, string, out T)

A sub-object selected BY NAME from a parent asset, for a caller that cannot wait. True only when it is already resident — nothing loads here.

The name is part of the address now (parent[Name]), not a second cache dimension: a sub-asset is a content entry like any other, so it is stored and found through the ordinary key path. That is what lets one .fbx hold several clips without a collision — Shield@Block01.fbx has _Hit and _Hold — and it is the same shape the declaration writes and the generator stores.

public static bool TryGetSubAsset<T>(string parentAddress, string objectName, out T asset) where T : Object

Parameters

parentAddress string
objectName string
asset T

Returns

bool

Type Parameters

T