You seem to be getting confused with your objects as you have only created an object of asset type ‘cat’.
The key part here is ‘CreateObject’, which based on the asset name applies the animation sequences.
In your code you get the cat object from your table and then change the asset name to ‘monster’ which does nothing more than change the asset name, it has not created an object of type ‘monster’, so all the animation sequences applied to this obj are still from cat.
You can’t really change an existing object you have to create a new one.
It is possible to have three objects e.g. obj, cat and monster and then set obj to either cat or monster when needed.
ohhh ok. So I can’t change Sequence to another from different asset, I can only choose other sequence but from the same asset in animation table right? That’s logic. Thanks
You seem to be getting confused with your objects as you have only created an object of asset type ‘cat’.
The key part here is ‘CreateObject’, which based on the asset name applies the animation sequences.
In your code you get the cat object from your table and then change the asset name to ‘monster’ which does nothing more than change the asset name, it has not created an object of type ‘monster’, so all the animation sequences applied to this obj are still from cat.
You can’t really change an existing object you have to create a new one.
It is possible to have three objects e.g. obj, cat and monster and then set obj to either cat or monster when needed.
ohhh ok. So I can’t change Sequence to another from different asset, I can only choose other sequence but from the same asset in animation table right? That’s logic. Thanks