ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Create a Squash and Stretch effect in Unity with code (2D, 3D, UI)

how to create squash and stretch in unity

Unity tutorial

Learn Unity

ChristinaCreatesGames

Game dev

Game development

game dev tutorial

game development tutorial

UI Design

how to make squash and stretch in unity

animation

tutorial

squash and stretch

stretch

squash

squash and stretch unity

squash and stretch animation

squash and stretch animation tutorial

squash & stretch

unity 3d

Game animation

Автор: Christina Creates Games

Загружено: 2023-10-17

Просмотров: 7451

Описание: Adding some squash and stretch to your GameObjects can really make them come alive. All you need is a bit of code in Unity! Let's learn how!

This script can be attached to 3D objects, 2D sprites and UI elements without any changes needed. It's highly customizable and offers features like forward and backwards playing of the animation, percentage based animation (30% chance to play, for example) and a way to have every element react at once without having to find all the elements in the scene.
Three use cases show exemplary implementations: UI Buttons reacting to hovering above them, 3D elements's squash and stretch being called when they get created and a 2D character with a breathing animation as well as a jumping and landing animation.

📃 Github
https://github.com/Maraakis/Christina...

Assets I used for this:
Kenney - Scribble Platformer - https://kenney.nl/assets/scribble-pla... (free)
KayKit - Halloween Bits - https://kaylousberg.itch.io/halloween... (free with paid extras)
KayKit - City Builder Bits - https://kaylousberg.itch.io/city-buil... (free with paid extras)
Both make amazing game assets, check them out =)!

Note about Odin Inspector:
I've used a few Odin Inspector Attributes in this video, but you don't need any of those to follow along. I just realized there are a lot of people out there with the asset sitting around, not finding good, every-day use cases yet 😉
Odin Offers a 90 day free trial in case you got curious 💛 You can find it here: https://odininspector.com/download
And in case you think it's worth it, here you can find it on the asset store: https://assetstore.unity.com/packages... [Affilate link]

📖 Chapters 🔖
00:00 - Introduction
00:30 - The Effect of Squash and Stretch
01:33 - Writing the Script
02:09 - Core Settings
03:35 - Animation Duration and Settings
05:13 - Looping Settings
06:30 - Initial Scale and Animation Curve
08:00 - Looping and Delay
09:08 - Axis Effects
11:00 - Reverse Animation
11:30 - Percentage Chance and Animation Play
12:00 - Squash and Stretch All Objects
13:24 - Examples: UI
13:51 - Examples: 3D
14:08 - Examples: 2D Character
14:37 - Conclusion

📁 Get the PDF Version of my tutorials
Would you rather read a book? I have a collection of eBooks on the Unity UGUI System here:
📘 Itch: https://christinacreatesgames.itch.io/

💬 Join the Discord
You are very welcome to join   / discord   !

🎮 Play My Games
🎲 https://christinacreatesgames.itch.io

🛍️ Recommended Assets
https://assetstore.unity.com/lists/hi... [affiliate]
📖 List of books all around Gamedev and Design I recommend: https://www.christinacreatesgames.com...
Otherwise, using my affiliate codes for these stores helps to support my channel:
🛒 Unity Asset Store: https://assetstore.unity.com/?aid=110... [affiliate]
🏪 Synty Store: https://syntystore.com/christinacreat... [affiliate]
🪸 Envato Elements: https://1.envato.market/ChristinaCrea... [affiliate]
🟦 Amazon: https://amzn.to/3G8NgFq [affiliate]

🌟 Actionable UI Feedback for Your Game
I offer UI consulting for gamedev projects! With 15+ years of design experience and a background of a teacher, I’m here to help:
👉 Learn more: https://www.vennegerts.com/en/gamedev...

☕ Support Me on Ko-fi
If you enjoy the content and want to support my work:
💛 Buy me a cocoa: https://ko-fi.com/christinacreatesgames

#unitytutorial #unity3d #gamedev #indiedev

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Create a Squash and Stretch effect in Unity with code (2D, 3D, UI)

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Collide And Slide - *Actually Decent* Character Collision From Scratch

Collide And Slide - *Actually Decent* Character Collision From Scratch

Unity UI canvas modes and canvas scaler explained

Unity UI canvas modes and canvas scaler explained

Unity UI Canvas Anchors explained

Unity UI Canvas Anchors explained

Understanding Camera Layers for your Multiplayer Game

Understanding Camera Layers for your Multiplayer Game

SQUASH & STRETCH - The 12 Principles of Animation in Games

SQUASH & STRETCH - The 12 Principles of Animation in Games

Я Прошёл Cuphead на НЕВОЗМОЖНОЙ Сложности (Cupagoovno)

Я Прошёл Cuphead на НЕВОЗМОЖНОЙ Сложности (Cupagoovno)

[Blender] Game Ready Rigs - Squash & Stretch Solutions

[Blender] Game Ready Rigs - Squash & Stretch Solutions

Don't use the Unity Animator, Use Code Instead! - Tutorial

Don't use the Unity Animator, Use Code Instead! - Tutorial

Events & Delegates in Unity

Events & Delegates in Unity

🤓 Впервые АДЕКВАТНО Играю В Роблокс [Первый Опыт В Жизни] • Roblox Grow a Garden + Фиксплей

🤓 Впервые АДЕКВАТНО Играю В Роблокс [Первый Опыт В Жизни] • Roblox Grow a Garden + Фиксплей

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]