I have a script attribute below that holds information for cards:
GameplayManager.attributes.add('cardHandler', {
type: 'json',
schema: [
{
title: 'spawnObject',
type: 'asset',
assetType: 'template'
},
{
title: 'Card Name',
name: 'cardName',
type: 'string',
default: 'enterCardName'
},
{
name: 'cardValue',
type: 'number',
default: 0
}],
array: true
});
Once I have those filled out, is there a way to instantiate each of those individually and if so how do I reference them?