Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I generate new ropes during runtime?
#1
I've been looking here: http://obi.virtualmethodstudio.com/tutor...ctors.html for a guide on how to generate ropes during runtime. But I've run into an issue.

In the second section called "Creating Blueprints" when I use the code on the site, I get an error that I don't know how to fix.

Code:
var blueprint = ScriptableObject.CreateInstance<ObiRopeBlueprint>();

It seems that unity doesn't understand what "blueprint" means. I put "using Obi;" at the start of my script as I needed a way to use the code found in "Creating a Solver" and it allowed that to read all the stuff used to generate a solver. But when it comes to creating a blueprint Unity just doesn't know what to do.

Does anyone have a solution too this? It's pretty important for my game to be able to generate ropes during the game, but it's just strange how the sample code listed on the official documentation doesn't seem too work.
Reply


Messages In This Thread
How do I generate new ropes during runtime? - by MLAnimation - 08-08-2020, 11:06 PM