Closed hobnob closed 4 years ago
Critical: 0 Warning: 0 Info: 0
Security | Defect | API | Anomaly | Rename | Lint | Info | |
---|---|---|---|---|---|---|---|
Critical | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Warning | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Info | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
File | Critical | Warning | Info |
---|
It should be outline.MeshFilter
, as well on L238 it shouldn't be outline.GetComponent<Renderer>()
but outline.SkinnedMeshRenderer
.
There are a few areas in the OutlineEffect where GetComponent is used on PreRender, but doesn't need to be (which may affect performance)
This will remove all but 1 call (made at the Start of the scene) in favour of caching the information required on the Outline object