Peter posts
[Unity Tip] Use TryGetComponent(0 to avoid null Reference Exception
To avoid getting a Null Reference Exception in Unity, use TryGetComponent() instead of GetComponent() when working with components๐๐#unitytips #gamedev #unity2d #IndieGameDev #Coding
Exactly 4 years ago, I took a leap of faith...
Exactly 4 years ago, I took a leap of faith and quit my day job to pursue my dream of making games ๐๐ฑ๐พToday, my video about my game is featured on Unity's website and it finally feels like it all wasn't just a waste of time ๐คฉ๐ฎโ๐จ๐ฅณhttps://assetstore.unity.com/sunny-valley-studio?aid=1011luq6W
[Unity Tip] Use Animation Layers to blend character animations together
Animation Layers allows you to blend different animations so that your character appears to look more realistic ๐ซ๐ฅฐ๐
[Preview] VR zombie project gameplay
Hey!I am still working on the VR Zombie project (and the video). Here is a preview of how the gameplay will look like.I am still implementing the AI to actually attack the player
WIP on a new video about VR Zombie game
Improved my VR Zombie shooting feedback ๐ง๐Also added some headshot feedback ๐ฏMoving on to adding some AI for them / creating a playable level ๐#unity3d #vr #oculus #quest2 #gamedev #madewithunity #ใฒใผใ ๅถไฝ #gamedevelopment #IndieGameDev #indiedev
[Unity Tip] Disable Orange Box Outline of Particles
You can Disable the Orange Box Selection Outline from the gizmos dropdown by disabling "Selection Outline" โน๏ธ๐Can be useful when working with particle systemโจ๐ซ#UnityTips #unity2d #unity3d #vfx #gamedev #gamedevelopment #indiegamedev #indiedev
[Unity Tip] Using Hands as controllers in Unity VR Project
To add Hands Tracking and Visualization to your Unity VR game you can use the XR Hands package https://docs.unity3d.com/Packages/com.u
[UnityTip] Use Event Trigger to add OnClick to UI
Use ๐๐๐ฒ๐ป๐ ๐ง๐ฟ๐ถ๐ด๐ด๐ฒ๐ฟ component to quickly ๐ฎ๐ฑ๐ฑ ๐ข๐ป๐๐น๐ถ๐ฐ๐ธ functionality to you ๐จ๐ ๐ฒ๐น๐ฒ๐บ๐ฒ๐ป๐ โจ๐ฑ๏ธ๐ (or any other event ๐)
[Unity Tip] Selecting Multiple Enum in Inspector
You can ๐๐ฒ๐น๐ฒ๐ฐ๐ ๐บ๐๐น๐๐ถ๐ฝ๐น๐ฒ ๐๐ป๐๐บ values in ๐จ๐ป๐ถ๐๐ ๐ถ๐ป๐๐ฝ๐ฒ๐ฐ๐๐ผ๐ฟ by using [๐๐น๐ฎ๐ด๐] attribute ๐๐
[Unity Tip] Changing color of Debug.Log messages
๐ ๐ฎ๐ธ๐ฒ your ๐๐ฒ๐ฏ๐๐ด.๐๐ผ๐ด() messages ๐บ๐ผ๐ฟ๐ฒ ๐ฟ๐ฒ๐ฎ๐ฑ๐ฎ๐ฏ๐น๐ฒ by using ๐ฅ๐ถ๐ฐ๐ต ๐ง๐ฒ๐ ๐ ๐ ๐ฎ๐ฟ๐ธ๐๐ฝ ๐๐ซ๐https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/StyledText.html
Building Idle Clicker in Unity - Full Project
Here is a tutorial on making an ๐๐ฑ๐น๐ฒ ๐๐น๐ถ๐ฐ๐ธ๐ฒ๐ฟ ๐๐ฎ๐บ๐ฒ ๐ถ๐ป ๐จ๐ป๐ถ๐๐! ๐๐ฑ๏ธyoutu.be/GK9jQryYVCkI will explain some math and design concepts behind making an Idle game๐You can also ๐ด๐ฟ๐ฎ๐ฏ ๐๐ต๐ฒ ๐๐๐น๐น ๐ฃ๐ฟ๐ผ๐ท๐ฒ๐ฐ๐ that I show in the vid for ๐ณ๐ฟ๐ฒ๐ฒ ๐
[Unity Tip] Use Shift+Space to quickly Maximize and Minimize tabs in Unity
To quicky ๐ ๐ฎ๐ ๐ถ๐บ๐ถ๐๐ฒ and ๐ ๐ถ๐ป๐ถ๐บ๐ถ๐๐ฒ ๐๐ฎ๐ฏ๐ in Unity you can use ๐ฆ๐ต๐ถ๐ณ๐+๐ฆ๐ฝ๐ฎ๐ฐ๐ฒ shortcut key ๐Very useful when working with Shader Graph window ๐๐
[Unity Tip] Scrolling Background Shader
To add ๐ฆ๐ฐ๐ฟ๐ผ๐น๐น๐ถ๐ป๐ด ๐๐ฎ๐ฐ๐ธ๐ด๐ฟ๐ผ๐๐ป๐ฑ ๐ฒ๐ณ๐ณ๐ฒ๐ฐ๐ โฌ to you Unity game you can use a simple ๐๐๐๐๐ผ๐บ ๐ฆ๐ต๐ฎ๐ฑ๐ฒ๐ฟ ๐ซ๐Here is a mini tutorial on how to implement it ๐
[Unity Tip] How to make GLOWING Lamp in Unity
Make your ๐๐ฎ๐บ๐ฝ ๐๐น๐ผ๐ ๐ก in Unity by using ๐๐บ๐ถ๐๐๐ถ๐ผ๐ป ๐ฝ๐ฎ๐ฟ๐ฎ๐บ๐ฒ๐๐ฒ๐ฟ with a ๐ง๐ฒ๐ ๐๐๐ฟ๐ฒ ๐ ๐ฎ๐๐ธ ๐คฟ to limit the glow to the light bulb element ๐๐*If your models don't use textures you may not need the extra texture mask ๐
Tutorial Preview - Incremental Game in Unity
I'm Preparing a ๐๐๐๐ผ๐ฟ๐ถ๐ฎ๐น about creating an ๐๐ป๐ฐ๐ฟ๐ฒ๐บ๐ฒ๐ป๐๐ฎ๐น ๐ด๐ฎ๐บ๐ฒ in Unity๐๐ฑ๏ธHere is a playable version: ๐ฎ๐๐พhttps://svstudio.itch.io/alien-invasion-incremental-gameWill be posting a full project for FREE (will let you know in the next video)
[Unity tip] How to make Lighting Generation in Unity FASTER
To ๐ฆ๐ฝ๐ฒ๐ฒ๐ฑ ๐จ๐ฝ the ๐๐ถ๐ด๐ต๐๐ถ๐ป๐ด ๐๐ฒ๐ป๐ฒ๐ฟ๐ฎ๐๐ถ๐ผ๐ป ๐ก in Unity we can LOWER ๐ ๐๐ถ๐ด๐ต๐๐บ๐ฎ๐ฝ ๐ฅ๐ฒ๐๐ผ๐น๐๐๐ถ๐ผ๐ป parameter ๐This can be ๐๐๐ฒ๐ณ๐๐น ๐๐ต๐ฒ๐ป you are ๐ถ๐๐ฒ๐ฟ๐ฎ๐๐ถ๐ป๐ด ๐ over the Lighting settings before you are ready for a higher quality bake ๐
[Unity Tip] Why FindObjectOfType returns null?
๐๐ถ๐ป๐ฑ๐ข๐ฏ๐ท๐ฒ๐ฐ๐๐ข๐ณ๐ง๐๐ฝ๐ฒ<..>() ๐ method will ๐ฟ๐ฒ๐๐๐ฟ๐ป ๐ก๐จ๐๐ if the searched ๐ผ๐ฏ๐ท๐ฒ๐ฐ๐ is ๐ฑ๐ถ๐๐ฎ๐ฏ๐น๐ฒ๐ฑ in the hierarchy ๐It can be really frustrating if you don't know it - especially since ex GetComponents<>() finds all the objects ๐๐
[Unity Tip] Quick way to use Enum in a Switch Statement in Unity
You can quickly ๐ด๐ฒ๐ป๐ฒ๐ฟ๐ฎ๐๐ฒ a ๐๐๐ถ๐๐ฐ๐ต ๐๐๐ฎ๐๐ฒ๐บ๐ฒ๐ป๐ for your ๐๐ป๐๐บ๐ using ๐ฐ๐ผ๐ฑ๐ฒ ๐๐ป๐ถ๐ฝ๐ฝ๐ฒ๐๐ in Visual Studio ๐Might save you some typing โจ๏ธ
[Unity Tip] How to fix "Random is ambiguous"
How to fix "๐ฅ๐ฎ๐ป๐ฑ๐ผ๐บ ๐ถ๐ ๐ฎ๐ป ๐ฎ๐บ๐ฏ๐ถ๐ด๐๐ผ๐๐ ๐ฟ๐ฒ๐ณ๐ฒ๐ฟ๐ฒ๐ป๐ฐ๐ฒ.." error?๐คSimply type: ๐๐๐ถ๐ป๐ด ๐ฅ๐ฎ๐ป๐ฑ๐ผ๐บ = ๐จ๐ป๐ถ๐๐๐๐ป๐ด๐ถ๐ป๐ฒ.๐ฅ๐ฎ๐ป๐ฑ๐ผ๐บ; at the top of your script. โจ๏ธIt will let the compiler know which library you want to use in this script๐
[UnityTip] Use Z to swap between Pivot and Center handle position
Hey!A quick shortcut key tip - you can press ๐ญ to quickly ๐๐๐ฎ๐ฝ between ๐ฃ๐ถ๐๐ผ๐ and ๐๐ฒ๐ป๐๐ฒ๐ฟ handle position in the Scene View ๐
[UnityTip] How to change naming convention for duplicated object in Unity
You can ๐ฐ๐ต๐ฎ๐ป๐ด๐ฒ the ๐ฑ๐ฒ๐ณ๐ฎ๐๐น๐ ๐ป๐ฎ๐บ๐ถ๐ป๐ด of duplicated objects "๐ฃ๐ฟ๐ฒ๐ณ๐ฎ๐ฏ (๐ญ)" in Unity by going to the Project Settings tab ๐
Unity Tip - Use ๐ฅ๐ฒ๐ฐ๐๐ง๐ฟ๐ฎ๐ป๐๐ณ๐ผ๐ฟ๐บ๐จ๐๐ถ๐น๐ถ๐๐ to easily convert Screen space to World space
You can in Unity - for example to ๐ฑ๐ฟ๐ฎ๐ด ๐จ๐ ๐ฒ๐น๐ฒ๐บ๐ฒ๐ป๐๐๐๐ฑ๏ธ๐Here is a step by step explanation:https://youtu.be/sXTAzcxNqv0#UnityTips #unity3d #unity2d #gamedev #gamedevelopment
[Unity Tip] Can't add script error
"๐๐๐ง'๐ญ ๐๐๐ ๐ฌ๐๐ซ๐ข๐ฉ๐ญ.." error message ๐ฉusually is a result of Unity / VS failing to recompile your script ๐Just create a New Script to force recompilation process ๐ฎโ๐จ๐#unitytips #unity2d #unity3d #gamedev #gamedevelopment
Last part of the Grid Placement system tutorial is Up!
Hey guys!All the video for the Grid Placement System in Unity are available :)Here is a link to the playlist:https://www.youtube.com/playlist?list=PLcRSafycjWFepsLiAHxxi8D_5GGvu6arfI hope that you will find it useful!-Peter
[Unity Tip] You can ๐๐๐ผ๐น๐ฎ๐๐ฒ an ๐ผ๐ฏ๐ท๐ฒ๐ฐ๐ in the ๐๐ฐ๐ฒ๐ป๐ฒ ๐๐ถ๐ฒ๐ ๐
You can ๐๐๐ผ๐น๐ฎ๐๐ฒ an ๐ผ๐ฏ๐ท๐ฒ๐ฐ๐ in the ๐๐ฐ๐ฒ๐ป๐ฒ ๐๐ถ๐ฒ๐ ๐ by selecting it and pressing ๐ฆ๐ต๐ถ๐ณ๐ + ๐ ๐Project in the vid is my Voxel World in Unity tutorial๐https://youtu.be/leBl6q21-0I
[Tutorial] Showing Grid on a map - Grid Placement System P2
Hey!Next part of my ๐ด๐ฟ๐ถ๐ฑ ๐ฝ๐น๐ฎ๐ฐ๐ฒ๐บ๐ฒ๐ป๐ ๐๐๐๐๐ฒ๐บ in ๐จ๐ป๐ถ๐๐ is here!We will create a ๐ด๐ฟ๐ถ๐ฑ ๐๐ถ๐๐๐ฎ๐น๐ถ๐๐ฎ๐๐ถ๐ผ๐ป using a custom ๐๐ต๐ฎ๐ฑ๐ฒ๐ฟ ๐I hope that you will find it useful!-Peter
[Project Files] Grid Placement System in Unity
Hey!ZIP file contains a full project. Just unpack it to a new folder and open in Unity Hub using Unity 2022.2.Unitypackage should be added to a 3D URP project since we will be using Shader graph later on-Peter
Sims like house building system in Unity
My video about creating a ๐ฆ๐ถ๐บ๐-like ๐๐ผ๐๐๐ฒ ๐๐๐ถ๐น๐ฑ๐ถ๐ป๐ด ๐๐๐๐๐ฒ๐บ in ๐จ๐ป๐ถ๐๐ is here! ๐จ๐ท๐กI hope that you will find it useful ๐https://youtu.be/8kv1RcBKcqY
[Preview] Sims-like building system in Unity
Hey!I know that I haven't posted any new tutorial in a while. Sorry about that. I was preparing a Sims like building system in Unity for February but I failed to finish it in time. ๐ Here is a little preview of what I will cover (had to seriously condense it to fit the 8 mb requirements for a vid on discord). I will do my best to release it this week since I need to finish the Farm Game Course next.PS.Sorry to all who were expecting something more exciting. I wanted to tackle the Sims like game in Unity for some time now (besides I really...
[Unity Tip] Calling code inside Unity Inspector using ContextMenu attribute
Use a [๐๐ผ๐ป๐๐ฒ๐ ๐๐ ๐ฒ๐ป๐] attribute to ๐ฎ๐ฑ๐ฑ a ๐ต๐ฒ๐น๐ฝ๐ฒ๐ฟ ๐บ๐ฒ๐๐ต๐ผ๐ฑ to be ๐ฐ๐ฎ๐น๐น๐ฒ๐ฑ from the ๐จ๐ป๐ถ๐๐ ๐ถ๐ป๐๐ฝ๐ฒ๐ฐ๐๐ผ๐ฟ ๐(no need for a custom Editor script)๐You can call it from the 3 dots context menu of your script ๐


![Peter post [Tutorial] Showing Grid on a map - Grid Placement System P2 from patreon](https://img10.leakoo.com/storage/1/uz/mx/93d9f0-019e725e-b461-7653-a6eb-a3db5dc9c59e.jpg)
![Peter post [Project Files] Grid Placement System in Unity from patreon](https://img5.leakoo.com/storage/10/bw/vb/93d9f0-019e725e-b46a-7a3d-ba53-00f1cf8bb315.jpg)
