---
title: Init(VisualElement, IUxmlAttributes, CreationContext)
product: Unity Editor
version: '6000.3'
latest_version: '7000.0'
status: This page documents version 6000.3. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/6000.3/script-reference/unityengine/uielements/scrollview/uxmltraits/init
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/uielements/scrollview/uxmltraits/init.md
last_updated: 2026-09-14
generated_at: 2026-11-17T11:54:07.869Z
locale: en-us
---

# Init(VisualElement, IUxmlAttributes, CreationContext)

> Initialize ScrollView properties using values from the attribute bag.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.3/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

> **Warning:**
>
> **Deprecated.** UxmlTraits is deprecated and will be removed. Use UxmlElementAttribute instead.

```csharp
public override void Init(VisualElement ve, IUxmlAttributes bag, CreationContext cc)
```

### Parameters

**** (\[VisualElement]\(/engine/6000.3/script-reference/unityengine/uielements/visualelement)): The object to initialize.**** (\[IUxmlAttributes]\(/engine/6000.3/script-reference/unityengine/uielements/iuxmlattributes)): The attribute bag.**** (\[CreationContext]\(/engine/6000.3/script-reference/unityengine/uielements/creationcontext)): The creation context; unused.
