CLASSES
TagsA - Z

Tags

Description

class Tags

Tags can be added to ANY javascript object (not necessarily reserved to BabylonJS) by calling Tags.AddTagsTo

Tags.MatchesQuery can be used to check if a javascript object matches a "boolean" query

The tags 'true' and 'false' are reserved and cannot be used as tags

a tag cannot start with '||', '&&', and '!' it cannot contain whitespaces

Methods

static EnableFor(obj) void

Enable the tag system for the given object.

Parameters

Name Type Description
obj any The given object

static DisableFor(obj) void

Disable the tag system for the given object

Parameters

Name Type Description
obj any The given object

static HasTags(obj) boolean

True if given object has tags, false otherwise

Parameters

Name Type Description
obj any The given object

static GetTags(obj, asString) any

Parameters

Name Type Description
obj any The given object
optional asString boolean

static AddTagsTo(obj, tagsString) void

Add tags

Parameters

Name Type Description
obj any The given object
tagsString string @param tagsString

static RemoveTagsFrom(obj, tagsString) void

Remove the list of tag to the given object

Parameters

Name Type Description
obj any The given object
tagsString string @param tagsString

static MatchesQuery(obj, tagsQuery) boolean

Parameters

Name Type Description
obj any The given object
tagsQuery string @param tagsQuery