s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Structs
AssetTags
chevron_left
Structs
struct
AssetTags
Methods
functions
Add
functions
Contains
functions
GetAll
functions
GetEnumerator
functions
Remove
functions
Set
functions
Toggle
AssetTags
Represents a collection of tags for an asset. This is only necessary so we can save tags as soon as they are added.
struct
Editor.Asset
.
sealed
Sandbox.Tools
functions
Methods
7
Add
(
tag
)
Add a single tag.
Contains
(
tag
)
bool
Returns whether this asset has given tag.
GetAll
(
)
String[]
Returns all tags of this asset.
GetEnumerator
(
)
IEnumerator`1
Remove
(
tag
)
Remove given tag from the asset.
Set
(
tag
,
set
)
Set or remove the tag based on second argument.
Toggle
(
tag
)
Remove the tag if present, add if not.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.