Prasetio Nugroho·3 hours agoAutomatically Adding Namespace in Unity C# scriptWhen your project is getting bigger, somehow you should naming your classes with uniqe name. Sometime, our classess name is the same as plugin classes name, this makes it a little annoying. To solve it, we should rename it. Actually, there is best practice from C# to avoid this problem…Programming2 min read
鐘燈塔·1 day ago[URP Shader] DepthTexture獲取Built-In與URP中DepthTexture獲取方式 — 前言 想要做到一些特殊的視覺處理,最常見的就是取得Depth資訊後來胡搞瞎搞,想要做出遠景模糊或是雲霧,基本上繞不開此項數據。 (此篇使用 Universal RP 12.1.6 和 Unity 2021.2.19f1) Built-In管線獲取方式 攝影機設置 在Forward中,深度圖需要從攝影機使用腳本來開啟運算,因其需特別擷取深度,開啟後會有一定的效能耗損。若使用Deferred延遲運算,因其本身就有儲存資訊至G-buffer,效能不會額外耗損。 Camera.main..depthTextureMode = DepthTextureMode.Depth; 開啟後會給予提示 " Indo : renders Depth texture "Shaders6 min read
Eric Yoon·10 hours agoPublishing Unity Games on Steam: The Ultimate GuideSteam is one of the most popular game publishing platforms today, yet Steam developers haven’t made it exactly easy to publish apps to the platform, even in 2022. Here’s how to publish Mac and Windows apps to Steam from Unity. Glossary Steam has lots of confusing terminology that you should get…Development6 min read
John C Hills·13 hours agoStarting to Feel Like a Real Video Game!And Benefits of Prototyping without Assets — What Are The Benefits of Prototyping Without Assets? Some might think you should just pull in your assets as soon as you start working on your game. This could not be further from the truth. Using primitives (i.e. cubes, capsules, cylinders, etc.) is a beneficial habit to get in to. It gives you a basic feeling of how your…Unity5 min read
Marcus Cohee·12 hours agoGuide to Making a Beautiful Game: Light Probes in HDRPHello all! Today, I will be going over why you should add light probes to your scene! Adding your Light Probe Group When adding your light probes, just duplicate them all over your scene. This will make sense when I explain them. Why use Light Probes Light probes are a mesh of lights sources that emit light on dynamic…Unity2 min read
鐘燈塔·2 days ago[URP Shader] UPR 基本觀念未來在Unity開發中若追求效能,應該繞不過UPR的Shader撰寫,此篇將紀錄學習UPR Shader過程中的一些筆記 — 前言 何為SRP SRP全名Scriptable Render Pipeline (可程式化渲染管線),可於Unity通過C#腳本調用API來實現自定義渲染流程。 何為URP URP全名Universal Render Pipeline (通用渲染管線),基於SRP提供的模板,針對跨平台開發建構的渲染管線,效能較Built-In管線優秀,另可開放自定義來實現不同功能風格。 根據官 …Shaders6 min read
James Hills·16 hours agoCreating Enemy ExplosionsLet’s Have a Blast — The current action of my enemy deaths was set to only Destroy the enemy game object. While this is exactly what I wanted to happen, now I want to see an explosion animation when I destroy it. I selected the enemy prefab in the Projects panel and opened the enemy…Unity5 min read
Eero Saarinen·18 hours agoHow to detect collisions in UnityOnTriggerEnter vs OnCollisionEnter — So at the moment neither my lasers have any effect on my enemies, nor my enemies to me. How to solve this? After browsing through the Unity manual I found two options OnTriggerEnter and OnCollisionEnter that could solve my no effect problem. So which one to use? Mostly it depends…Unity3 min read
tinalear·1 day agoThe Moment Has Come.We have to do something. COLLECTIVELY. NOW. — FIRST, A LITTLE ENCOURAGEMENT: The tweet below, which appeared in in 2017, ignited an international firestorm and gave much needed momentum to a movement started in 2006 by Tarana Burke, the one who coined #metoo. Read it carefully. The response says, “If [we all responded with] ‘Me too’ as a status, we might give…Gun Control2 min read
Ethan MartininDev Genius·19 hours agoDay 51 of Game Dev: How to use Height Maps and Pixel Displacement in Unity!Objective: Review what Height Maps are and how to use them in Unity to make 2D objects appear 3D. For my example I will make a plane and apply a 2D stone material to it. I will need a height map which will tell the computer where different sections of…Unity2 min read