class in UnityEngine.UIElements
/
Inherits from:UIElements.VisualElementReference
Represents a strongly-typed reference to a VisualElement in a PanelRenderer.
| Constructor | Description |
|---|---|
| VisualElementReference_1 | Creates a new empty VisualElementReference. |
| Method | Description |
|---|---|
| RegisterReferenceResolvedCallback | Registers a callback for when the reference is resolved from the document. When you register a callback, if the reference is already resolved, the callback is immediately invoked. |
| RegisterReferenceUnloadedCallback | Registers a callback for when the referenced object is unloaded. This occurs when the document is destroyed, such as when a live reload occurs after the VisualTreeAsset changes. At this point, all references are invalid and should be cleared. |
| UnregisterReferenceResolvedCallback | Unregisters a callback for when the reference is resolved from the document. |
| UnregisterReferenceUnloadedCallback | Unregisters a callback for when the referenced object is unloaded. |
| Property | Description |
|---|---|
| authoringPath | The path to the referenced element. SetReference |
| panelRenderer | The provider used to resolve the reference. SetReference |
| Method | Description |
|---|---|
| Equals | Indicates whether the current object is equal to another element reference. |
| RegisterReferenceResolvedCallback | Registers a callback for when the reference is resolved from the document. When you register a callback, if the reference is already resolved, the callback is immediately invoked. |
| RegisterReferenceUnloadedCallback | Registers a callback for when the referenced object is unloaded. This occurs when the document is destroyed, such as when a live reload occurs after the VisualTreeAsset changes. At this point, all references are invalid and should be cleared. |
| SetReference | Sets the reference to point to the given document and path. |
| UnregisterReferenceResolvedCallback | Unregisters a callback for when the reference is resolved from the document. |
| UnregisterReferenceUnloadedCallback | Unregisters a callback for when the referenced object is unloaded. |