An asset resource which represents an anim state graph. It can be loaded into an anim component using the AnimComponent#loadStateGraph method.

Scripts can retrieve an AnimStateGraph instance from assets of type 'animstategraph'. An AnimStateGraph can then be loaded into an anim component as follows:

const animStateGraph = app.assets.get(ASSET_ID).resource;
const entity = new pc.Entity();
entity.addComponent('anim');
entity.anim.loadStateGraph(animStateGraph);