1. Dynamically read files in the editor
In the actual game development, a considerable part of the static data can be placed on the client, so the demand for dynamic reading of these files naturally arises, such as csv, xml, etc. no matter what system is used for Unity development, if you want to achieve this effect, you obviously need to imple ...
Posted by nbalog on Wed, 25 May 2022 21:11:22 +0300
Unity data persistence - PlayerPrefs
I believe that many friends who use unity for game development have headaches and lose a lot of hair because of such a file system! Then this time I will teach beginners how to make a file system about PlayerPrefs.
By the way, this is the first article I have shared, if there is anything wrong, p ...
Posted by itshim on Sun, 22 May 2022 01:26:11 +0300
There are many detection methods, and the key is to analyze when and what method is the most appropriate (with good effect and high performance)
1. Collision detection
(1) Conditions for collision detection:
Both have collision components, the moving object has rigid body components, and at least one collider is attached with a non dyna ...
Posted by warptwist on Wed, 18 May 2022 16:32:34 +0300
What is star A routing algorithm #
In game development, there is often a need to let the player controlled character automatically find the way to the target location, or let the AI character move to the target location. The actual situation may be very complex. For example, there are obstacles on the map that cannot be passed, or rivers and s ...
Posted by sunilj20 on Tue, 17 May 2022 09:27:57 +0300
Write in front
Refer to this article for this example Implementation blog (download attached items). The previous introduction of the blog post is very specific. Unfortunately, the close-up track implementation code behind is not organized according to the four standard pieces (data, mixer, clip and track) I want, so I skip the introduction he ...
Posted by crash58 on Sat, 14 May 2022 04:48:37 +0300
Roguelike Random Dungeon
Set up doors & optimize the final room selection
1, Set up doors & optimize the final room selection
First, we add doors in four directions. Click Prefab, and then we create a square to temporarily replace our door. Right click create 2D sprites square. Then drag them into our Prefab, copy them and place t ...
Unity shader learning notes (IX)
20 non photorealistic rendering
20.1 cartoon style rendering
There are many methods to realize cartoon rendering, one of which is the use of hue based shading technology. In the implementation, a one-dimensional texture will be sampled using the diffuse coefficient to control the hue of the diffuse reflec ...
Posted by Ange52 on Sun, 08 May 2022 15:08:34 +0300
Simple UI framework
Develop the instantiation, creation and management of BasePanel base class and control UI panel Prefab
1, BasePanel base class
Each panel has common functions, so each panel is given a common base class BasePanel.
public class BaseP ...
Posted by jallard on Tue, 03 May 2022 18:22:02 +0300
The light source of volume light can be parallel light, searchlight, point light source, etc. Today, let's take a look at how parallel light makes volume light.
The principle of volumetric light is already available on the Internet, so I won't go into details here. Focus on fast implementation:
Posted by austenr on Fri, 29 Apr 2022 23:25:23 +0300
1, Special folder
(1) Project path acquisition
// Note that the path obtained in this way is generally only used in editing mode
// We will not use this path after the actual release of the game
// After the game is released, the path does not exist
(2) Resources folder
// Path acquisition:
// Generally no ...
Posted by Chezshire on Thu, 21 Apr 2022 20:46:25 +0300