With this function you can clear all the tags present on any asset from the asset browser. You supply either the asset name (as a string) or its asset index, and if you supply an asset index value, then you will need to supply the optional asset type argument (a constant), as assets of different types can have the same index, even though they cannot have the same name. The available asset types are listed in the table below:
| Constant | Description |
|---|---|
| asset_object | The given name refers to an object. |
| asset_sprite | The given name refers to a sprite. |
| asset_sound | The given name refers to a sound. |
| asset_room | The given name refers to a room. |
| asset_tiles | The given name refers to a tile set. |
| asset_path | The given name refers to a path. |
| asset_script | The given name refers to a script. |
| asset_font | The given name refers to a font. |
| asset_timeline | The given name refers to a time line. |
| asset_shader | The given name refers to a shader. |
| asset_animationcurve | The given name refers to an Animation Curve. |
| asset_sequence | The given name refers to a Sequence. |
If the function succeeds in clearing the tags it will return true otherwise it will return false.
asset_clear_tags(name,[asset_type]);
| Argument | Description |
|---|---|
| name_or_index | The name of the asset (a string) or its index value (an integer). |
| [asset_type] | OPTIONAL! The type of asset to clear the tags from, only used when supplying an index for the first argument. |
Boolean
asset_clear_tags(obj_Enemy_Parent, asset_object);
The above code will clear all tags from the given object asset.