Struct SceneTag
A Unity-defined shared component assigned to all entities in the same subscene.
Namespace: Unity.Entities
Syntax
[Serializable]
public struct SceneTag : ISharedComponentData, IEquatable<SceneTag>
Fields
SceneEntity
The root entity of the subscene.
Declaration
public Entity SceneEntity
Field Value
Type | Description |
---|---|
Entity |
Methods
Equals(SceneTag)
Two SceneTags are equal if they have the same root subscene entity.
Declaration
public bool Equals(SceneTag other)
Parameters
Type | Name | Description |
---|---|---|
SceneTag | other | The other SceneTag. |
Returns
Type | Description |
---|---|
Boolean | True if both SceneTags refer to the same Subscene. False, otherwise. |
GetHashCode()
A unique hash code for comparison.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The scene entity has code. |
Overrides
ToString()
A string for logging.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string identifying the root subscene entity. |