SampleCity.cs - error CS0117: 'CityGenerator' does not contain a definition for 'Create'

Create issue
Issue #25 new
Former user created an issue

Getting a error that prevents compiling and playing:

private void Generate() { CityConstraintData constraintData; if(constraint == null) { constraintData = new CityConstraintData(); // constraintData.mapSize = 1000; } else { constraintData = constraint.content; } Debug.Log("Generate "+" "+constraint+" "+constraintData);

        Rect cityBounds = new Rect(0, 0, 1000, 1000);
        city = CityGenerator.Create(seed, constraintData, cityBounds);

It's saying that Create has not been defined, is there something missing? I haven't changed the script I just added the asset to my Unity project.

Comments (1)

  1. Jasper Stocker repo owner

    Hi, what version of BuildR are you using? What version of Unity are you using? Have you tried deleting and reimporting the BuildR asset? Sometimes Unity failed to unpack the whole file and leaves files out.

    I currently do not see this issue in my version.

  2. Log in to comment