Table of Contents

Field SubAsset

Namespace
GrindFest.Content.Editor
Assembly
GrindFest.dll

The name of an object inside the asset, when the entry addresses one — a clip inside an .fbx, a sprite inside an atlas. Null for a whole asset.

This exists because a whole-file entry is the wrong grain for animation: the game asks for SkillAssets.Clip(path, clipName), and AssetLibrary documents what loading the file instead returns — Drink Potion.fbx holds a GameObject and an AnimationClip of the same name, so the file path resolves to the model node and the clip never arrives. A bracket is also already this codebase's name for that lookup: AssetLibrary.RequireSubAsset builds its error address as parentAddress + "[" + objectName + "]".

public string SubAsset

Returns

string
The name of an object inside the asset, when the entry addresses one — a clip inside an .fbx, a sprite inside an atlas. Null for a whole asset. This exists because a whole-file entry is the wrong grain for animation: the game asks for SkillAssets.Clip(path, clipName), and AssetLibrary documents what loading the file instead returns — Drink Potion.fbx holds a GameObject and an AnimationClip of the same name, so the file path resolves to the model node and the clip never arrives. A bracket is also already this codebase's name for that lookup: AssetLibrary.RequireSubAsset builds its error address as parentAddress + "[" + objectName + "]".