# AttributesScope

> Scope for using a given set of attributes.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Properties](/engine/6000.7/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule
* **Implements:** [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public readonly struct AttributesScope : IDisposable
```

## Constructors

| Constructor                                                                                                                                        | Description                                                                                                                                                                           |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AttributesScope(Unity.Properties.IProperty,Unity.Properties.IProperty)](/engine/6000.7/script-reference/unity/properties/attributesscope/ctor.md) | Initializes a new instance of the [AttributesScope](/engine/6000.7/script-reference/unity/properties/attributesscope.md) struct assigns the given attributes to the specified target. |

## Methods

| Method                                                                                 | Description                                       |
| -------------------------------------------------------------------------------------- | ------------------------------------------------- |
| [Dispose](/engine/6000.7/script-reference/unity/properties/attributesscope/dispose.md) | Re-assigns the original attributes to the target. |
