Skip to content

Feature Request: Accordion - Dynamic content before Start()/Awake() #455

@jonathan-bryant

Description

@jonathan-bryant

Unity UI Extensions Feature Request - Dynamic content before Start()/Awake()

I was having issues with the Accordion component loading correctly, especially in build.
This was due to dynamic content being added before the first frame. Adding the below to AccordionElement.cs fixed it for me:

private IEnumerator Start()
{
	yield return null; // Wait for the first frame
	OnValueChanged(this.isOn);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions