Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Batch processing of the Generator to create a bunch of Meshes
#2
Hi,

The reason behind your issue is that you are using the generator before it being initialized. This can happen if you are calling it in the Start method, depending on the order of execution of scripts. The solution is given here: https://curvyeditor.com/documentation/generator/start

In your case, that would mean:
Code:
IEnumerator Start()
    {
        // Wait until the generator is fully intialized before accessing it:
        while (!generator.IsInitialized)
            yield return null;

        if (doRendering)
        {
            ...
        }
    }

Let me know if you still have issues
Have a nice day
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: Batch processing of the Generator to create a bunch of Meshes - by _Aka_ - 10-20-2020, 11:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Create Game Object Renaming Options rickgplus 1 927 09-23-2025, 09:33 AM
Last Post: _Aka_
  How to rotate generator asteroids patndan74 6 3,809 05-08-2025, 10:07 PM
Last Post: _Aka_
  Maintaining vertical orientation of extruded meshes rickgplus 3 2,458 01-24-2025, 09:24 PM
Last Post: _Aka_
  Create Mesh Node, Make Static Options rickgplus 1 1,825 01-23-2025, 10:12 AM
Last Post: _Aka_

Forum Jump: