|
Window Framework for UI Toolkit v2.0.x
|
Example of a log viewer Content Element using the ScrollView component to show a list of text entries To use Content Elements like this in your own code just create a new class that extends the element your want to use (VisualElement, ScrollView, etc.) and then add the content you want to show in the constructor. More...


Public Member Functions | |
| LogViewerContentExample () | |
| Builds fifty fixed demonstration labels with sample inline styling. | |
Example of a log viewer Content Element using the ScrollView component to show a list of text entries To use Content Elements like this in your own code just create a new class that extends the element your want to use (VisualElement, ScrollView, etc.) and then add the content you want to show in the constructor.
Then you can just set the Content of your window with the element you created. when you create the window just add: Content = new LogViewerContentExample(); OR Content.Add(new LogViewerContentExample());
|
inline |
Builds fifty fixed demonstration labels with sample inline styling.
Does not subscribe to Unity logs, stream files or own a persistent log history. Add to existing window content; caller owns the subtree's lifecycle.
