- Home /
Please manage the error 'Can not instantiate objects with a parent which is persistent.'
While there are several scenes, if you invoke prefab in this way an error will occur, but it works correctly on the game view. Is there a way to erase the error? Or, can you erase the error programatically? The version you are using is 2018.3.6f.
public void onenga ()
{
In case
objer = Instantiate (objj, objj.transform, true);
objer.transform.SetParent (transform);
objer.transform.GetChild (1). GetComponent (). onClick.AddListener (onenga 2);
}
Answer by hayabusa43 · Mar 04, 2019 at 10:39 AM
Thank you for thinking. This sentence is a translation
There is no error with setparent. An error occurs in instantiate and addlistener.
Your answer
![](https://koobas.hobune.stream/wayback/20220612192907im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Setting parent of instantiated object fails (Error: setting parent of prefab is disabled...) 1 Answer
setting the parent of a transform which resdes in a prefab is dusabled to prevent data corruption 1 Answer
Accessing children of instances vs children of original prefab 1 Answer
Howto set main.camera as a parent when main.camera itself is a child of a prefab 1 Answer
Instantiate a Prefab as child 0 Answers