Gettinng IT up Posted January 19, 2022 Posted January 19, 2022 Hey i'm having a simple but weird issue. I'm getting this error and my imposters are not unloading when the terrain loads. MissingComponentException: There is no 'Terrain' attached to the "Impostor_3_3-20220118 - 013629" game object, but a script is trying to access it. You probably need to add a Terrain to the game object "Impostor_3_3-20220118 - 013629". Or your script needs to check if the component is attached before using it.
Solution Bryan Posted January 19, 2022 Solution Posted January 19, 2022 2 hours ago, Gettinng IT up said: Hey i'm having a simple but weird issue. I'm getting this error and my imposters are not unloading when the terrain loads. MissingComponentException: There is no 'Terrain' attached to the "Impostor_3_3-20220118 - 013629" game object, but a script is trying to access it. You probably need to add a Terrain to the game object "Impostor_3_3-20220118 - 013629". Or your script needs to check if the component is attached before using it. Can you take a look at this imposter and send a screen shot of the inspector?
Gettinng IT up Posted January 20, 2022 Author Posted January 20, 2022 I think i figured it out. Some how my imposter was turned of in it's own scene. so i turned it on and saved the scene and that fixed it!
Gettinng IT up Posted January 21, 2022 Author Posted January 21, 2022 Hey turns out that that problem is back and i'm getting these error codes again. ```MissingComponentException: There is no 'Terrain' attached to the "Impostor_2_3-20220118 - 013629" game object, but a script is trying to access it. You probably need to add a Terrain to the game object "Impostor_2_3-20220118 - 013629". Or your script needs to check if the component is attached before using it.``` then followed by a null debug.
Gettinng IT up Posted January 21, 2022 Author Posted January 21, 2022 i try turning the imposters the are off on and hit play mode but it seems to reset the because when i check after i stop playing there off again..
Bryan Posted January 21, 2022 Posted January 21, 2022 Can you please show me the inspector of the Importer terrain that its pointing to?
Bryan Posted January 21, 2022 Posted January 21, 2022 When you click on the Terrain Loader Manager- Load All Imposters. Does each of the terrains have an imposter refence attached to them? It seems to me somehow one of your imposters is not connected to that terrain. If so what you could do is (save a backup) go to your terrain mesh exporter. Select Create imposters (and revert export) and then start the export again.
Gettinng IT up Posted January 21, 2022 Author Posted January 21, 2022 i can't find the terrain mesh exporter.?
Bryan Posted January 21, 2022 Posted January 21, 2022 For future use anyone needing this. Window - Procedural Word - Gaia - Gaia Manager- Advanced - Gaia Tools - Terrain Mesh Exporter. For your question on discord how to increase your world size I have made an article about this: 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now