[Unity note] understanding of AssetBundle API
Development platform: Unity Programming platform: Visual Studio 2017 or above Programming language: C# Reference book: intensive introduction to the official case of UNITY
Returns the storage path relative to the project directory
AssetDatabase.GetAssetPath(Object assetObject)
For example, Assets/_Scenes/Main.unity.
Returns the first ...
Posted by Fataqui on Tue, 08 Feb 2022 19:21:32 +0100
unity demo free download: third person lens movement + line of sight + launch arc ball to hit the box (the box can identify the direction of attack) demo
Unity: third person vision movement + line of sight + firing arc ball to hit the box (the box can identify the direction of attack) demo
Function Description:
The camera can move according to the mouse sliding (similar to the third person game lens control) A small ball that emits an arc The camera field of view has an auxiliary line (line ...
Posted by anne13 on Sun, 06 Feb 2022 22:37:22 +0100
Unity elementary tutorial Snake implementation (Snake)
Play games after learning Unity
It is hereby declared that this material is made by sikicollege Obtained from, without commercial use, only for learning and use. This time, the default full screen is 1920 * 1080; Moreover, the connection between the head and body of the snake is not handled properly. At the beginning, there are two snake bodie ...
Posted by rahulephp on Tue, 01 Feb 2022 20:31:18 +0100
Interaction principle of C# synergy and Lua synergy
Interaction principle of C# synergy and Lua synergy
In Unity game development, C# language + lua language is a common development mode. This paper mainly studies the basic principle of the interaction between C# coprocess and lua coprocess.
C #'s collaborative process
C # coprocessor is essentially an iterator. (may be added later)yield ...
Posted by Mikell on Sun, 30 Jan 2022 18:48:11 +0100
Common functions of Unity2D camcorders
Preface
Currently it includes slow follow characters, range limits, room switching, screen shaking.
Why do you need to write your own camera script?
Unity itself comes with plug-ins such as Cinemachine, which have many common camera functions. On the one hand, it is very bulky and cumbersome. On the other hand, if we have special requirement ...
Posted by plouka on Sun, 30 Jan 2022 07:15:23 +0100
Unity -- log printing tool
1, Log tool function
To encapsulate the Debug class, you need to implement the following functions:
1. Control whether all logs are printed;
2. In addition to Log, Warning and Error, give more Log types (different colors);
3. Format and print the log;
4. Indefinite parameters, automatically spliced into a string;
5. Upload logs to the server;
2 ...
Posted by franzy_pan on Fri, 28 Jan 2022 19:53:14 +0100
Food ji blindly forcing: mixed arrangement of pictures and texts based on UGUI (Continued)
Last Mixed arrangement of pictures and texts
Today, when you have this demand again, you pick it up and find a better understanding by the way. For record Direct up shader
// Author:zouchunyi
// E-mail:zouchunyi@kingsoft.com
Shader "UI/EmojiText" {
Properties {
[PerRendererData] _MainTex ("Font Texture", 2D) = "white" {}
_Color ("Tint" ...
Posted by keigowei on Wed, 26 Jan 2022 09:06:07 +0100
Detailed explanation of Unity UGUI Batches batch rules
Detailed explanation of Unity UGUI Batches batch rules
When dealing with UGUI DrawCall, we often encounter various problems.
Problem 1: when processing UGUI batch, it is found that a panel parent node rotates, and the lower UI batch order will be disrupted.
For more questions: Treatment method of batch failure of UGUI 3D interface / ...
Posted by arun_php on Wed, 26 Jan 2022 02:40:41 +0100
Comparison and test of Mask and RectMask2D components in Unity
Component usage
Mask component can realize the effect of mask. Set an image as a sub object with mask component image, and finally hide the part where the sub image does not coincide with the mask image. For example:
(the blue circle is called mask, and the digital picture is called image)
Results after adding a mask component to the " ...
Posted by salim on Tue, 25 Jan 2022 03:29:24 +0100
[Unity Shader] restore CSGO holographic sticker effect
Materials provided by small partners:
hologram sticker effect, referred to as holo:
achievements:
The implementation of shader graph based on URP and built in pipeline
1. Effect analysis
Here you can see the sticker effect of csgo: StatTrak™ AWP | Man-o'-war (Minimal Wear) | 3D Skin Viewer
According to the observation, it is found th ...
Posted by dgwade on Fri, 21 Jan 2022 21:20:48 +0100