This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

ScrollView.SetContents

Declaration

public void SetContents(Experimental.UIElements.VisualElement contents);

Parameters

contents The element to display in this ScrollView

Description

Replaces the contentContainer with this element. The previous contents container will be removed the hierarchy