Aegistus / Untitled-Pirate-Game

Made for CS 325 Group Game Project
0 stars 0 forks source link

Outline Script Causing Errors On Play #62

Closed Aegistus closed 1 year ago

Aegistus commented 1 year ago

Getting a string of errors when Outline scripts are attached to Ship Objects. Outlines have been removed for time-being. Here is an example exception message:

Not allowed to access vertices on mesh 'SM_Veh_Boat_Warship_01_Hull_Bare' (isReadable is false; Read/Write must be enabled in import settings) UnityEngine.Mesh:get_vertices () Outline:SmoothNormals (UnityEngine.Mesh) (at Assets/Prefabs/FX/Outline/Outline.cs:218) Outline:LoadSmoothNormals () (at Assets/Prefabs/FX/Outline/Outline.cs:186) Outline:Awake () (at Assets/Prefabs/FX/Outline/Outline.cs:90) UnityEngine.Object:Instantiate (UnityEngine.GameObject,UnityEngine.Vector3,UnityEngine.Quaternion) EnemySpawner:SpawnEnemy () (at Assets/Scripts/Level Objects/EnemySpawner.cs:17) SpawnManager/d__4:MoveNext () (at Assets/Scripts/Level Objects/SpawnManager.cs:34) UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)

JinNada commented 1 year ago

The new boats were not imported with read/write perms on so they threw errors at the Outline and Spawner scripts. Fixed perms & reimplemented Outlines.