19-02-2022, 08:28 PM
Turns out I solved this, I just didn't understand how to add asset references to components via a script. For anyone wondering, I basically followed this tutorial exactly:
https://www.youtube.com/watch?v=7GcEW6uwO8E
And then added this bit of code to my script:
Where 'xxx' is the desired object and 'yyy' is the material name in the GetAssets script.
Thanks again a ton josemendez for the help!
https://www.youtube.com/watch?v=7GcEW6uwO8E
And then added this bit of code to my script:
Code:
GameObject.Find("xxx").GetComponent<ObiCollider>().CollisionMaterial = (GameAssets.i.yyy);
Thanks again a ton josemendez for the help!