Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cant Generate Meshes At Runtime
#1
I'm making a car game and have a Vector3 list. I'm generating levels at runtime by adding checkpoints to spline using the positions from the list I created. After added all the checkpoints on spline I'm refreshing the generator. In editor everything works fine but in the mobile no roads have been created. How can I solve that?
Reply
#2
Hi
Have you tried a debug build that displays the errors in the console? Are there any error?
Can you try a build on desktop? The goal is to see if this is a build vs editor issue, or a pc vs mobile issue.
Once we have the answers to these questions we can proceed further if needed.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#3
I tried and find that it's editor vs mobile issue
Reply
#4
Hi,
Can you please answer all the questions from my previous post (I duplicated them bellow)? Otherwise it will be difficult for me to help you:
  1. Have you tried a debug build that displays the errors in the console? Are there any error?
  2. Can you try a build on desktop? Is the error in the desktop build too?
Thanks.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply
#5
(01-15-2024, 11:54 AM)_Aka_ Wrote: Hi,
Can you please answer all the questions from my previous post (I duplicated them bellow)? Otherwise it will be difficult for me to help you:
  1. Have you tried a debug build that displays the errors in the console? Are there any error?
  2. Can you try a build on desktop? Is the error in the desktop build too?
Thanks.

Hello! I have the same problem. 

Answering the questions:
1. No, I haven't any sort of mistakes while building. Everything is OK.
2. I just build to android and windows and I don't have a spline in both of this builds. But in Unity Editor everything is good.

That what i made:
1. Create path at pathfinding
2. Get points from the path of pathfinding
3. Instatiate prefabs with curvy spline segment component to a parent - object with a Curvy spline component
4. Set this spline as an input in Curvy generator with a creating game objects component
5. "Refresh" curvy spline and curvy generator components

And in Unity Editor everything is OK, but in any build I don't see any of created game objects by curvy generator. Maybe a spline hadn't created too, I don't know/
One thing: in editor Curvy Generator as a parent creates one object per second: FluffyUnderware.Curvy.Generator.CGMeshResource, Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
Reply
#6
Hi

Regarding my question 1: Debug builds add a console to the application you build. That build displays error messages if any. My question was regarding messages in that console, and not messages in the unity editor console displayed while the build is being created.

Can you please send me a simple reproduction case so I can debug it?

Thanks
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Maintaining vertical orientation of extruded meshes rickgplus 3 387 01-24-2025, 09:24 PM
Last Post: _Aka_
  How to generate gameobject on the control point Yang Yi 1 192 12-10-2024, 10:14 PM
Last Post: _Aka_
  Tunnel Colliders and Looping Meshes Petusarian 5 373 07-17-2024, 02:36 PM
Last Post: _Aka_
  Disable rebuild of meshes in dynamic mode Zilk1 3 327 05-27-2024, 08:14 AM
Last Post: _Aka_

Forum Jump: