- Home /
I want to create a bookmark function using the toggle button,I want to develop the bookmark function
I want to create a bookmark function that reflects the information to other scenes in real time by clicking the toggle button in the list.
static DataManager m_instance; public static DataManager Instance { get { return m_instance; } }
public List<Image> images;
I made a list and I want to use it in a script in another scene.
public void Click() { DataManager.Instance.images[0] = GetComponent();
}
,If you press the toggle button in the list, I want to change in real time that information is entered and deleted in another scene.
static DataManager m_instance; public static DataManager Instance { get { return m_instance; } }
public List<Image> images;
By making a list of images like this
public void Click() { DataManager.Instance.images[0] = GetComponent();
}
I would like to import this from another scene and use it
Your answer
Follow this Question
Related Questions
Access UI.Toggle from c# CodeBehind -How does one set the Toggle created in the front end of Unity? 1 Answer
NullReference when calling a function to another script 2 Answers
Singleton field getter/setter doesn't work 0 Answers
Acessing a Script Instance from Another Object 3 Answers
Unity : Singleton ScriptableObjects resets after play 1 Answer