Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Save shapes into project for reuse
#1
Hi,

I've just started using Curvy in my project and have a question. I've created a shape that I'm using to extrude platforms out of for my game. I'm looking to reuse the shape in multiple levels so I thought I could just create a prefab of the shape and drag it into the generator to reuse it. However, when I do this I get errors that CP and materials are not available and the spline path becomes wonky.

I suppose my question is am I doing something wrong, or is there a better way fo doing this.
Reply
#2
Hi,

Are you dragging the prefab directly from the Project window into the generator?
  • If this is the case, that's not a use case I ever considered, so no wonder if it doesn't work. I always assumed that people instantiate a prefab in their scene before using it. Is there any reason for you to not instantiate the prefab before using it?
  • If this is not the case, then can you please send me a reproduction case?
Have a nice day
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#3
(12-13-2020, 07:56 AM)_Aka_ Wrote: Hi,

Are you dragging the prefab directly from the Project window into the generator?
  • If this is the case, that's not a use case I ever considered, so no wonder if it doesn't work. I always assumed that people instantiate a prefab in their scene before using it. Is there any reason for you to not instantiate the prefab before using it?
  • If this is not the case, then can you please send me a reproduction case?
Have a nice day

HI _Aka_,

OK, so it worked if I create an instance of the prefab and then drag it into the graph, thanks for the tip.

In regards to the reason for doing this, I have a lot of assets that use the prefab directly and some that use instances only, I guess this is a force of habit. I do find it a bit cleaner to use the prefab directly, plus some assets perform initialisation on anything you drag in so it is safer to assume that a direct use is the preferred option. I think the thing that threw me was that it allowed me to directly drag the prefab in and it added it to the scene with no errors.

Either way, it is working now so thank you. BTW, I'm loving this asset it has a bit of a learning curve but once you get passed that it opens up so many possibilities.
Reply
#4
Ok, I see. Will try to make direct usage of the prefab work in the (distant) future.
Thanks for the review. Feel free to write me with suggestions to make Curvy Splines even better.
Have a nice day
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Bug: Save Generator Outputs still saves outputs if object is disabled curvymesher 1 3 08-30-2024, 09:19 AM
Last Post: _Aka_
  Variable Mix Shapes stretches faces GameDeveloperek4123 8 10 08-12-2024, 08:34 AM
Last Post: _Aka_
  I want to improve the performance of Variable Mix Shapes yanke 7 10 07-27-2023, 09:15 PM
Last Post: _Aka_
  Shapes points orientation itsGama 3 11 01-18-2023, 02:51 PM
Last Post: _Aka_

Forum Jump: