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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Information Want me to share your project? _Aka_ 0 407 05-16-2020, 04:56 PM
Last Post: _Aka_
  Is Curvy good for my project ? SirKnightDragoon 1 722 05-05-2020, 08:37 PM
Last Post: _Aka_
  Using shape extrusion with small shapes amccraw 5 1,913 02-15-2020, 03:07 PM
Last Post: amccraw
  Reuse Curvy Generator Wanderfalke 4 1,989 12-06-2019, 12:06 PM
Last Post: Wanderfalke

Forum Jump: