08-08-2020, 11:06 PM
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.
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.
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.