We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfdd01e commit dbbc9fbCopy full SHA for dbbc9fb
Runtime/AvatarCreator/UI/Buttons/ButtonElement.cs
@@ -22,11 +22,11 @@ public void AddListener(Action action)
22
button.onClick.AddListener(action.Invoke);
23
}
24
25
- private void OnDestroy()
26
- {
27
- button.onClick.RemoveAllListeners();
28
- }
29
-
+ /// <summary>
+ /// Sets the icon on the rawImage component
+ /// </summary>
+ /// <param name="texture">The texture to be assigned to the RawImage component</param>
+ /// <param name="sizeToParent">If true the icon will resize itself to fit inside the parent RectTransform</param>
30
public void SetIcon(Texture texture, bool sizeToParent = true)
31
{
32
rawImage.texture = texture;
0 commit comments