Unity Editor Hello, Unity Dev’s I am back again with Part 3 of Creating custom editor window in unity. In today’s blog we will look around: “How to load Textures files from resource folder and create our buttons.” Step1. Gather some images related to the headers of our sub-toolbars or if you are good at photoshop create some, btw I have zero skills when it comes to photoshop so I am goanna gather images from internet. Once we have are images ready drag them into respected folder under root folder Resources. It will look something like this: Step2. Scripting Now we need to create a function which will be called once whenever we will switch from sub-tabs. Hmmmm, so how to do that!!! First create a function and name it as per your want’s I have named mine as: “MakeWindow” Then write down these lines: Create two variables a list: to store our loaded texture...
Welcome back Developers, today we are gone learn about collider. As per the unity manual the definition for collider is: Collider components define the shape of an object for the purposes of physical collisions . A collider, which is invisible, need not be the exact same shape as the object’s mesh and in fact, a rough approximation is often more efficient and indistinguishable in gameplay. In simple word a collider gives your gameobject a physical nature so it can be a hard surface and other gameobject can’t pass through it. Unity supports multiple colliders 3D as well as 2D. Ok, we have this many collider but what to do with them how to use them in Scripts? Simple Unity provides some build-in method to use collider. They are: Addition to this collider has some additional properties and methods which we cover later. But if you want to check them out go to the official unity scripting API link: https://do...