Unity uses another Mask solution to solve the aliasing of Mask components
This article shares another Mask solution used in Unity to solve the aliasing of Mask components
motivation
In the previous article, careful students may have seen that when the avatar is enlarged, obvious sawtooth can be seen, as shown in the figure:
This is because the template test is based on pixels, either pass or fail. If it fails, i ...
Added by envexlabs on Mon, 08 Nov 2021 02:59:47 +0200
Unity Editor Extension (MenuItem)
MenuItem
The MenuItem property is used to add menu items to the main menu and the inspector context menu.
The MenuItem property can convert any static function into a menu command. Only static functions can use the MenuItem property. To create a hotkey, you can use the following special characters:% (ctrl on Windows, cmd on macOS)# (sh ...
Added by artweb on Sat, 06 Nov 2021 20:02:28 +0200
unity simple backpack system
Video reference: Unity tutorial: backpack system: 04: display in backpack (C# code) InventoryManager_ Beep beep beep_ bilibili
Material download:
https://pan.baidu.com/s/1o7_RW_QQ1rrAbDzT69ApRw
Extraction code: 8s95
1. Create a panel (modify it to the center mode: so that the length, width and height can be adjusted) and call it Bag 515 ...
Added by morgan on Tue, 19 Oct 2021 10:44:19 +0300
Unity Editor extends PropertyDrawer -- drawing lazy artifact
Write in front
When using UnityEditor to customize the property panel, we mostly use the method of inheriting Editor directly. One script class writes one Editor class, but there are many non monobehavior classes that need to be used in different scripts. At this time, the demand comes. It's too troublesome to write each one repeatedly, You ca ...
Added by MBK on Thu, 07 Oct 2021 05:01:40 +0300
Unity notes - 12 - exercise item weapon module
Unity notes - 12 - exercise item weapon module
plan
If the magazine is loaded with bullets, it can be fired; Otherwise, wait for magazine replacement;
When firing bullets, play sound effects, animation and display sparks;
The player's gun can be single shot or continuous shot;
Player bullet
HP of the enemy will be reduced after hitting th ...
Added by saadshams on Tue, 28 Sep 2021 12:29:15 +0300
Unity game flashback problem record on Android 11 mobile phone
preface
The content of this paper is relatively simple, belongs to the narrative type, and is more verbose. Simply record the problems encountered in your work, and hope to meet the same or similar situations, which can help you solve the problems in your work.
Say the text
The thing is, at about 8:40 p.m. on September 7, I was riding, and t ...
Added by stone on Mon, 13 Sep 2021 02:52:50 +0300
[Unity] [ComputeShader] use ComputeShader to calculate the camera field of view
preface:
For a 1024 * 1024 plot, it is necessary to calculate which plots are within the camera range in real time. In order to improve the operation efficiency, ComputeShader is used here.
1. Preparatory work
First, right-click Unity to create a ComputeShader, then create a Canvas ...
Added by Yamakazi on Sun, 12 Sep 2021 02:10:26 +0300
Building Unity game framework 2019 (30, 31) MenuItem display order problem & Class extraction
In the previous article, we have come up with two core learning ideas:
According to the problem to learn, and collect.
Take the initiative to learn and think about the applicable scenarios.
Let's solve the problem of MenuItem display order today.
At present, MenuItem is shown as follows:
Let's take a look at the definition of MenuItem. ...
Added by billynastie on Fri, 24 Apr 2020 09:06:02 +0300
Unity Shader - simple water body - shallow to deep water color control
Simple simulation of water effect (3A game effect, please bypass)
Effect:
Production steps
Prepare the water grid (generated by the grid script, refer to: Unity Shader - Noise noise map - simple mountain)
Disturbed water grid vertex (Reference: Unity Shader - use Noise noise Noise map to generate sim ...
Added by djrichwz on Sun, 15 Mar 2020 09:42:48 +0200
Implementing general read and write of json data in unity
Using the LitJson plug-in
Used by LitJson
Just drag ListJson.dll into the Unity Assets folder to reference it in the code.
Let's encapsulate Litjson to make it more convenient for Unity.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using LitJson;//Introducing plug-i ...
Added by peter.t on Tue, 18 Feb 2020 04:41:18 +0200