Spawning Objects in Unity [Using Instantiate]

Spawning Objects in Unity [Using Instantiate]

Press Start

5 лет назад

238,959 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

AcidPants
AcidPants - 06.07.2023 08:09

i thought he was saying quarantine

Ответить
Ahmed Ayman
Ahmed Ayman - 03.05.2023 19:07

The screenboundaries code is correct, it should be something like this:
if (transform.position.x + screenBounds.x < 0)

Ответить
Charlado
Charlado - 12.03.2023 01:19

my game stop because the original asteroid that i put in the the deploy asteroid is missng

Ответить
loghan veilleux
loghan veilleux - 16.01.2023 03:58

it fixed my problem that i was having with my spawn system thanks a lot😎😎😎😎😁😁😁😁😁😁😁😁

Ответить
Lil D gamedev
Lil D gamedev - 24.12.2022 21:57

Hey this is great thanks! my question is I wanted to add a different object to be spawned so I made a new coroutine, but for some reason that one never spawns its object. Is the first coroutine interfering?

Ответить
Half Baked Productions
Half Baked Productions - 03.11.2022 04:19

RigidBody2D always seems to be null when instantiating a prefab. GitHub cloned projects and even the official Unity tutorial code just has your game shitting itself because the RB is null for no obvious reason. Even attaching one manually in code doesn't help.

I give up. Nobody has any answers that actually seem to work.

Ответить
meh (VA)
meh (VA) - 19.10.2022 01:05

does this also work up and down? not just left to right

Ответить
Christ O'Hell
Christ O'Hell - 16.10.2022 22:24

Not sure what i have done wrong here but the object i want to be deleted off screen immediately deletes itself. Checked code over and over not sure what i am missing.

Ответить
Everest
Everest - 27.09.2022 20:57

Thx. This is mega helpful. I have been looking for this for a long time, now i found it!

Ответить
Happy Cat
Happy Cat - 01.09.2022 19:22

Can you make it so that the clones get slowly faster the longer you play?

Ответить
Dayne Moore
Dayne Moore - 31.08.2022 07:14

you aren't a setup master without a set of cans around your neck.. I'm wearing a set now even though I don't know what I'm doing! LOL!

Ответить
potato legacy
potato legacy - 28.08.2022 11:50

u helped me a lot thx

Ответить
Lightning McQueen
Lightning McQueen - 25.08.2022 21:55

dude you give me a jumpscare with that intro

Ответить
Filip Kaczmarek
Filip Kaczmarek - 22.08.2022 14:12

why coding on light mode?

Ответить
Rachid Nono
Rachid Nono - 20.08.2022 19:45

was sowhere where I couldn't get my stuff. Now 3, I looked for help, watched video upon video after video and on and on. About a

Ответить
Josedron
Josedron - 27.07.2022 20:38

Brilliant tutorial, thank you.

Ответить
Sethey
Sethey - 14.07.2022 07:55

Did anyone else laugh when he said quarantine haha

Ответить
Cc
Cc - 11.07.2022 18:44

Does anyone know why my object would be deleted upon entering the screen instead of leaving it? I have the exact code as copied in the video :(

Ответить
Shara Haran
Shara Haran - 24.06.2022 14:23

Hi , I tried it for Y axis, but the "DEPLOYASTEROID.CS" did not work for me. I tried changing the x axis to y axis, but the spawning didn't work. Pls help me. Thank you.

Ответить
Yayboo
Yayboo - 09.06.2022 18:50

It only spawns about 3, then it stops spawning them

Ответить