GU source code analysis 10: InputField
Source code 10: InputField
InputField is the input box that provides users with input text content. It is an important interactive means. For example, it is commonly used to enter user name, password and so on.
public class InputField
: Selectable,
IUpdateSelectedHandler,
IBeginDragHandler,
IDragHandle ...
Posted by jblallement on Wed, 09 Mar 2022 16:43:59 +0100
Unity_ Aircraft war games
preface
This article mainly records the whole process of making Star Wars games.
Sets the movement of the background
First create two board planes, and then move the stars behind them. Notes: the original planet has a border. How to make the border disappear? – set transparency: in the Matrial setting: Move the background stars: It' ...
Posted by TitanKing on Mon, 07 Mar 2022 23:54:07 +0100
UIGU source code analysis 9: DropDown
Source code 9: DropDown
Dropwon is mainly used to realize the function of drop-down selection
public class Dropdown : Selectable, IPointerClickHandler, ISubmitHandler, ICancelHandler
{
...
protected internal class DropdownItem : MonoBehaviour, IPointerEnterHandler, ICancelHandler
{
//Text displayed by Item
[SerializeFiel ...
Posted by Celadon on Mon, 07 Mar 2022 17:17:51 +0100
Unity3d C# based on UGUI to realize WX chat bubble function (including source code)
preface
For example, I have implemented the requirements on NGUI, but now NGUI has not been used for many years. Now the requirements need to continue to be implemented on the UGUI version. I feel that they can be implemented quickly with components such as grid and ContentSizeFitter. After tossing for an hour, it has taken shape. I'll share i ...
Posted by phpbaby2009 on Mon, 07 Mar 2022 08:36:02 +0100
Unity primary tank war game implementation (Battle Tank) with engineering source code resource package
Remember to play the game for the third time after learning Unity
The last section finished the script above the enemy and players. This time, let's write the logic of the birth point and other scripts. First look at the script of the bullet. The bullet should be able to move, launch to a fixed position, and make corresponding operations when ...
Posted by gurechan on Sat, 05 Mar 2022 00:23:49 +0100
Implementation of Unity pixelation post-processing effect
Realization idea
Pixelation is to make many adjacent pixels become one pixel, which will naturally have the effect of pixelation. According to this idea, we can immediately think of a way to divide the screen into several areas. Each area is composed of several adjacent pixels. Each area is a square, and then calculate the convolution of the s ...
Posted by kylebud on Fri, 04 Mar 2022 15:12:27 +0100
Unity3d C# realizes the function of arrow indicating the position of 3D map object on UGUI (including source code)
preface
We did it before“ UGUI panel follow annotation 3D model function ”The effect is as follows:
It is found that if the objects are moved out of the field of view, the prompt will disappear. On the objects that need key prompt, the effect will be better if there is no indication in the field of view. Therefore, the functions ...
Posted by SmoshySmosh on Fri, 11 Feb 2022 04:07:17 +0100
Getting started with unity calculation shader
1. Definitions
Doing experiments requires high-performance computing, so turn it out and learn its usage.
The purpose of Compute Shader (CS for short) is parallel computing, which is suitable for algorithms with simple algorithms but a large number of algorithms Application scenarios: liquid simulation, cloth solution, settlement simulation, ...
Posted by mainewoods on Thu, 10 Feb 2022 01:10:27 +0100
Unity3D "tank war" case source code process
Importing footage Preliminary production object Next, we want to make the objects in the game. We open the GameResource file under the Assets folder of the Project panel. There are three folders below. From top to bottom, they are sound, font and picture. We find the player's picture and create an entity according to the following methods. T ...
Posted by arn_php on Wed, 02 Feb 2022 11:26:19 +0100
On the implementation principle of C# Dictionary
https://www.cnblogs.com/InCerry/p/10325290.html
1, Foreword
In fact, the drawings and text of this article have been sorted out for a long time, but it has been delayed until now for various reasons. The notes of "multithreaded programming" previously set up Flag have also been written. It is just that it is still rough, so it ne ...
Posted by Delaran on Fri, 28 Jan 2022 22:31:03 +0100