C# LookAt in Unity! - Beginner Scripting Tutorial

preview_player
Показать описание
Watch this video in context on Unity Learn:

How to make a game object's transform face another's by using the LookAt function.
Рекомендации по теме
Комментарии
Автор

Thanks, Unity Team for making YouTube Videos!

yashchaudhari
Автор

Awesome....love that you take care of your community

Автор

Awesome I can now complete my boss fight level by making a bullet that looks at the player and follows him

ahmedsaber
Автор

How would I go about making this work with a prefab like an enemy? I’m trying to make a turret for a tower defense game and I’m not sure how to do it

eternalwonder
Автор

Seems nice for a static scene, but not exactly for following, say, a player character around.

rolegames
Автор

can i do it, it just changes only the y rotation?

olioo
Автор

Hey how can I achieve this effect for a specific duration, or atleast have a countdown within the script

bongobliss
Автор

AWESOME!! but, how to do i make this work in a 2D workspace?

jshaw
Автор

How can I animate the lookat so that the change is not so abrupt?

franciscoblancoaran
Автор

I am looking everywhere but none of these seem to work with oncollisionenter and that's what I want to do, once the player enters a trigger, the lookat funtion is called. Everyone only has it looking at the object from the beginning.

killaonmoco
Автор

does anyone know how to delay the turning by a bit?

Ultradude-real
Автор

thank you from cali homeschool mom and 16 yo.

anaislake
Автор

Doesn't work. Camera does not rotate when assigned a transform target. Nothing changes

venomtailOG
Автор

The name target does not exist in the current context.

thellamasorcerer
visit shbcf.ru