- Home /
 
               Question by 
               Diamonddoggames · Mar 28, 2021 at 11:40 PM · 
                textsceneinputfieldscenesselect  
              
 
              Input Field Doesn't auto select in a different scene
I have this Input Field in 2 different scenes both of them are the exact same. I copied and pasted them from the first scene to the second scene. I have this script on the Input Field that auto selects the Input Field automatically. This is the code
 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 using UnityEngine.UI;
 public class autoSelectIF : MonoBehaviour
 {
 
     public InputField IF;
     // Start is called before the first frame update
     void Start()
     {
           IF.Select();
     }
 
     // Update is called once per frame
     void Update()
     {
 
            IF.ActivateInputField();
       
     }
 
   
 }
 
For some reason in the second scene it doesn't seem to auto select the Input Field. I've check everything I've looked at what could be wrong with it but I couldn't find any problems I tired my code on a different Input Field, and It didn't select.
               Comment
              
 
               
              Answer by ggroszek · Mar 24 at 07:56 PM
Did you ever figure this out? I'm having the same issue; input field works on one scene but not another. It's the same input field I just can't select it on both scenes.
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
               
 
			 
                