Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aquarium Tutorial : Coral Instantiate seems to return Null : no objects spawned #38

Open
ian57 opened this issue Dec 11, 2023 · 0 comments

Comments

@ian57
Copy link

ian57 commented Dec 11, 2023

Hi,

Testing the aquarium tutorial (Unity 2021.3.25f1, VS 2019) with Hololens2, when I try to experiment the "CanvasButtonBar" adding Spawner to the Coral button, nothing happens in the play mode. No error in unity. Button is well configured as described in the tutorial
Capture d’écran 2023-12-11 201628

I tried to debug through VS and saw that the Instantiate method

 public void SpawnCoral()
    {
        Vector3 position = new Vector3(.19f, 0, .7f);
        Instantiate(coral, position, Quaternion.Euler(0, 180, 0), parent);
    }

is doing nothing. Did I miss something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant