Class FunctionElement
A UI Element that runs a function when it is clicked ohn
Implements
IPointerEnterHandler
IEventSystemHandler
Inherited Members
Namespace: WeaverCore.Settings.Elements
Assembly: WeaverCore.dll
Syntax
public class FunctionElement : UIElement, IPointerEnterHandler, IEventSystemHandler
Properties
| Edit this page View SourceInvokeType
Declaration
public FunctionElement.InvocationType InvokeType { get; }
Property Value
Type | Description |
---|---|
FunctionElement.InvocationType |
Methods
| Edit this page View SourceCanWorkWithAccessor(IAccessor)
Whether or not this UI Element can work with the specified accessor
Declaration
public override bool CanWorkWithAccessor(IAccessor accessor)
Parameters
Type | Name | Description |
---|---|---|
IAccessor | accessor | The accessor to check against |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceOnAccessorChanged(IAccessor)
Called whenever the accessor gets changed
Declaration
protected override void OnAccessorChanged(IAccessor accessor)
Parameters
Type | Name | Description |
---|---|---|
IAccessor | accessor | The new accessor |
Overrides
| Edit this page View SourceOnClick()
Declaration
public void OnClick()
Implements
UnityEngine.EventSystems.IPointerEnterHandler
UnityEngine.EventSystems.IEventSystemHandler