Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

"Object reference not set to instance of object" but it is

$
0
0
I have tried to import some component from another program to my game but it generated errors. I imported it using the export on the other game and importing the package from my game. errors: NullReferenceException: Object reference not set to an instance of an object InfiniteTerrain.Awake () (at Assets/RandomTerrain/Scripts/InfiniteTerrain/InfiniteTerrain.cs:81) Line 81: m_splatPrototypes[i].texture.Apply(true); it also generated the same error on the infinite water script in this line: m_waterGrid[i, j].transform.parent = InfiniteTerrain.m_terrainGrid[i, j].transform; I don't know where or what am i suppose to attach the object to. It used to word fine for me but the water didn't work so i imported it again and now it's all broken. Perhaps there is something i didn't import? Please help me. Ethan

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>