File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
TestProjects/Main/Assets/Scripts Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -344,13 +344,13 @@ private void InstantiateAllTestButtons()
344
344
Transform buttonGroup =
345
345
GameObject . Instantiate ( m_gameObjectReferences . ButtonGroupTemplate , m_gameObjectReferences . ButtonScrollViewContent ) ;
346
346
Transform buttonGroupName = buttonGroup . GetChild ( 0 ) . transform ;
347
- Transform buttonGameObject = buttonGroup . GetChild ( 1 ) . transform ;
347
+ Transform buttonGameObject = buttonGroup . GetChild ( 1 ) . GetChild ( 0 ) . transform ;
348
348
// Set group name
349
349
buttonGroupName . GetComponentInChildren < Text > ( ) . text = group . Key . ToString ( ) ;
350
350
// Instantiate buttons
351
351
foreach ( DictionaryEntry test in group . Value )
352
352
{
353
- Transform button = GameObject . Instantiate ( buttonGameObject , buttonGroup ) ;
353
+ Transform button = GameObject . Instantiate ( buttonGameObject , buttonGroup . GetChild ( 1 ) ) ;
354
354
button . gameObject . GetComponentInChildren < Text > ( ) . text = test . Key . ToString ( ) ;
355
355
button . GetComponent < Button > ( ) . onClick . AddListener ( delegate
356
356
{
You can’t perform that action at this time.
0 commit comments