Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi Fluid Materials Question
#4
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:
Code:
GameObject.Find("xxx").GetComponent<ObiCollider>().CollisionMaterial = (GameAssets.i.yyy);
Where 'xxx' is the desired object and 'yyy' is the material name in the GetAssets script.

Thanks again a ton josemendez for the help! Gran sonrisa
Reply


Messages In This Thread
Obi Fluid Materials Question - by Freebird17 - 18-02-2022, 12:14 AM
RE: Obi Fluid Materials Question - by josemendez - 18-02-2022, 08:52 AM
RE: Obi Fluid Materials Question - by Freebird17 - 18-02-2022, 06:29 PM
RE: Obi Fluid Materials Question - by Freebird17 - 19-02-2022, 08:28 PM