Skip to main content

OpenTD reference 2026 R1

Class VisibilityManager

Last update: 09.03.2026

Namespace: OpenTD
Assembly: OpenTD.dll

public class VisibilityManager

Inheritance

object ← VisibilityManager

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Methods

DisplayAll()

Turn visibility on for all objects. Does not affect layers or global type controls.

public void DisplayAll()

DisplayOnly(IEnumerable<string>)

Turn visibility on for objects identified by handles. Turn off visibility for all other others. Does not affect layers or global type controls.

public void DisplayOnly(IEnumerable<string> handles)

Parameters

handles IEnumerable<string>

DisplayOnly(string)

Turn visibility one for object identified by handle. Turn off visibility for all other others. Does not affect layers or global type controls.

public void DisplayOnly(string handle)

Parameters

handle string

GetIdVisibility(IEnumerable<string>)

Get list of bools for whether IDs for objects selected by handles are visible. Does not account for layers or global type controls. Objects that cannot have IDs displayed will always return false.

public List<bool> GetIdVisibility(IEnumerable<string> handles)

Parameters

handles IEnumerable<string>

Returns

List<bool>

GetIdVisibility(string)

Get bool for whether ID single object selected by handle is visible. Does not account for layers or global type controls. Objects that cannot have IDs displayed will always return false.

public bool GetIdVisibility(string handle)

Parameters

handle string

Returns

bool

GetVisibility(IEnumerable<string>)

Get list of bools for whether objects selected by handles are set to visible. Does not account for layers or global type controls.

public List<bool> GetVisibility(IEnumerable<string> handles)

Parameters

handles IEnumerable<string>

Returns

List<bool>

GetVisibility(string)

Get bool for single object selected by handle is set to visible. Does not account for layers or global type controls.

public bool GetVisibility(string handle)

Parameters

handle string

Returns

bool

SetIdsOff(IEnumerable<string>)

Turn off ID for objects identified by handles. Not all object types can display tags. Does not affect layers or global type controls.

public void SetIdsOff(IEnumerable<string> handles)

Parameters

handles IEnumerable<string>

SetIdsOff(string)

Turn off ID for one object identified by handle. Not all object types can display tags. Does not affect layers or global type controls.

public void SetIdsOff(string handle)

Parameters

handle string

SetIdsOn(IEnumerable<string>)

Turn on ID for objects identified by handles. Not all object types can display tags. Does not affect layers or global type controls.

public void SetIdsOn(IEnumerable<string> handles)

Parameters

handles IEnumerable<string>

SetIdsOn(string)

Turn on ID for one object identified by handle. Not all object types can display tags. Does not affect layers or global type controls.

public void SetIdsOn(string handle)

Parameters

handle string

SetVisibilityOff(IEnumerable<string>)

Turn off visibility for objects identified by handles. Does not affect layers or global type controls.

public void SetVisibilityOff(IEnumerable<string> handles)

Parameters

handles IEnumerable<string>

SetVisibilityOff(string)

Turn off visibility for one object identified by handle. Does not affect layers or global type controls.

public void SetVisibilityOff(string handle)

Parameters

handle string

SetVisibilityOn(IEnumerable<string>)

Turn on visibility for objects identified by handles. Does not affect layers or global type controls.

public void SetVisibilityOn(IEnumerable<string> handles)

Parameters

handles IEnumerable<string>

SetVisibilityOn(string)

Turn on visibility for one object identified by handle. Does not affect layers or global type controls.

public void SetVisibilityOn(string handle)

Parameters

handle string

Connect with Ansys