Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

IDataSourceProvider

interface in UnityEngine.UIElements

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Binding types deriving from Binding can implement this interface to gain an additional layer of data source and data source path. These will be used by the binding system to compute the final BindingContext.dataSource and BindingContext.dataSourcePath that will be passed to the BindingContext during the binding update.

This dataSource and dataSourcePath will only affect the binding itself and not the hierarchy.

Properties

dataSource Data source object that is local to the binding object.
dataSourcePath Data source path that is local to the binding object.