This function clears all tags present on the given asset from The Asset Browser and returns whether any tags were removed.
If the function succeeds in clearing the tags it will return true otherwise it will return false.
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. |
asset_particlesystem | The given name refers to a Particle System. |
asset_unknown | The given name refers to an asset that either does not exist, or is not one of the above listed. |
asset_clear_tags(name,[asset_type]);
Argument | Type | Description |
---|---|---|
name_or_index | String or Asset | The name of the asset (a string) or its index value (an integer). |
[asset_type] | Asset Type Constant | OPTIONAL The type of asset to clear the tags from, only used when supplying an index for the first argument. |
Boolean (whether any tags were removed)
asset_clear_tags(obj_Enemy_Parent, asset_object);
The above code will clear all tags from the given object asset.