Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Instantiating Prefab on the spline for infinite track
#1
Hello guys! Curvy is a really impressive asset.

I am trying to add obstacles (cubes, for instance) for the player in infinite runner example scene. 
I have made the blueprint of the generator, but can't seem to add the cube object for CreateGameObjectModule through a script.
I basically can't find the syntax.

Some help, please? Any help, please?
Reply
#2
Hi,

In the scene 22_CGClonePrefabs, you can see how the Create GameObject and Input GameObjects module are used.

Here are the API references for those two classes:
https://api.curvyeditor.com/230/class_fluffy_underware_1_1_curvy_1_1_generator_1_1_modules_1_1_input_game_object.html
https://api.curvyeditor.com/230/class_fluffy_underware_1_1_curvy_1_1_generator_1_1_modules_1_1_create_game_object.html

And here are the (small) documentation for non coders:
https://curvyeditor.com/documentation/generator/modules/inputgameobject?redirect=1
https://curvyeditor.com/documentation/generator/modules/creategameobject?redirect=1
If after having a look at all this you still have any question, please post it here and I will answer you ASAP.

Thanks and 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
(08-02-2018, 10:39 AM)_Aka_ Wrote: Hi,

In the scene 22_CGClonePrefabs, you can see how the Create GameObject and Input GameObjects module are used.

Here are the API references for those two classes:
https://api.curvyeditor.com/230/class_fluffy_underware_1_1_curvy_1_1_generator_1_1_modules_1_1_input_game_object.html
https://api.curvyeditor.com/230/class_fluffy_underware_1_1_curvy_1_1_generator_1_1_modules_1_1_create_game_object.html

And here are the (small) documentation for non coders:
https://curvyeditor.com/documentation/generator/modules/inputgameobject?redirect=1
https://curvyeditor.com/documentation/generator/modules/creategameobject?redirect=1
If after having a look at all this you still have any question, please post it here and I will answer you ASAP.

Thanks and have a nice day

Thanks for quick reply. I have checked the links and I am still confused.
In the attached image, I have highlighted the references I need to make in the script. Can you help me with the syntax?
I can't seem to get the reference of 'Serialized property' in CreateGameObject Module and likewise how to get a reference to the groups of volumespots module?


Attached Files Thumbnail(s)
   
Reply
#4
Your are looking for:
- InputGameObject.GameObjects. Each one of them has a Object property.
- BuildVolumeSpots.Groups. Each group is displayed as its own tab.
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
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  GO can't fit end of the spline GameDeveloperek4123 3 14 03-04-2024, 11:06 AM
Last Post: _Aka_

Forum Jump: