Class ButtonEntry
A button entry that can be localized.
[BindEvent(typeof(Button), "onClick", "_OnClick")]
public class ButtonEntry : UdonSharpBehaviour
- Inheritance
-
ButtonEntry
- Extension Methods
Fields
callbackEventName
The event name to call on the callback target.
[LocalizedLabelAttribute]
public string callbackEventName
Field Value
callbackTarget
The callback target for the button.
[LocalizedLabelAttribute]
public UdonSharpBehaviour callbackTarget
Field Value
- UdonSharpBehaviour
callbackUserData
The custom data to pass to the callback target. Which will be set to the variable with the name of callbackVariableName.
[LocalizedLabelAttribute]
public object callbackUserData
Field Value
callbackVariableName
The variable name to set on the callback target.
[LocalizedLabelAttribute]
public string callbackVariableName
Field Value
Properties
Args
The arguments for the localized text.
public object[] Args { get; set; }
Property Value
- object[]
Key
The key for the localized text.
public string Key { get; set; }
Property Value
LanguageManager
The LanguageManager to use for localization.
public LanguageManager LanguageManager { get; set; }
Property Value
Text
The localized text.
public string Text { get; }
Property Value
Methods
_OnClick()
Callback entry point for the button.
public void _OnClick()