# ObjectManager

## Content

# Class: ObjectManager

Represents an object manager that controls the lifetime of other objects.

## Constructors

### Constructor

```ts
new ObjectManager(): ObjectManager;
```

Initializes a new instance of ObjectManager.

#### Returns

`ObjectManager`

## Accessors

### id

#### Get Signature

```ts
get id(): number;
```

Gets the object manager ID.

##### Returns

`number`

***

### stacked

#### Get Signature

```ts
get stacked(): boolean;
```

Indicates whether the object manager was created with the [pushObjectManager](../functions/pushObjectManager) method or the [withObjectManager](../functions/withObjectManager) decorator.

##### Returns

`boolean`

## Methods

### checkAlive()

```ts
checkAlive(): void;
```

Checks if the ObjectManager instance has not yet been disposed.

#### Returns

`void`

***

### dispose()

```ts
dispose(): void;
```

Disposes the ObjectManager instance.

#### Returns

`void`
