Camera processing of unity -- third person camera

The camera should have the functions of translating, following, rotating and zooming the field of view. Previously, the camera was placed at the lower node of the character to follow as a sub object of the character, but it was written dead: After checking the Internet, I found that it is very convenient to use the camera to process according t ...

Posted by vaavi8r on Mon, 10 Jan 2022 23:35:28 +0100

[Unity Native Container] custom Native Container [Part 5]: ParallelFor uses ParallelWriter and thread index

introduce   before this series, we studied creating our own custom Native Container and adding support for functions, such as deallocating when jobs are completed and adding parallel Job support. In this section, we will study another method of using [NativeSetThreadIndex] to add support for parallel writing.   this article will n ...

Posted by fat creative on Sun, 09 Jan 2022 14:46:54 +0100

[Unity technology excerpt] tolua framework access

[reference blog] he le Buwei- Access to the tolua framework of Unity 3D game client basic framework   introduction How to connect the tolua framework to the Unity project? Assuming that we already have a project and have implemented some infrastructure or the project is complete, how to connect the tolua hot update framework without affecting t ...

Posted by robpoe on Wed, 05 Jan 2022 11:31:33 +0100

UGui realizes ranking, list data assignment, sorting, ascending and descending.

catalogue UGUI sliding list implementation: Steps: The following is the code to automatically generate list items and assign and sort them: UGUI sliding list implementation: Steps: First step Create an Image and rename it to“ Scroll View ", add Scroll Rect Component, set component: uncheck horziontal (move horizontally). Add ...

Posted by Sakesaru on Tue, 04 Jan 2022 20:11:41 +0100

The Unity script automatically adds header comments

The Unity script automatically adds header comments Is to create cs automatically add author name, creation time, file name, etc Let's take a look at the example. We first create a Scripts folder under the project panel of Unity, and then create a script under the Scripts folder, named: test cs Then it's like this: This is because I have ...

Posted by ladokha on Tue, 04 Jan 2022 17:30:27 +0100

Prefabricated design of Health Bar

Prefabricated design of Health Bar Specific requirements are as follows: It is implemented using IMGUI and UGUI respectivelyUsing UGUI, the blood bar is a sub element of the game object and needs to face the main camera at any timeThe advantages and disadvantages of the two implementations are analyzedThe application method of prefabrication ...

Posted by rafadc on Wed, 29 Dec 2021 11:23:54 +0100

Unity SRP I: create a new pipeline

preface Tip: the learning content comes from the following literature catlikecoding.com Tip: the following is the main content of this article. The following cases can be used for reference 1.1 project construction In unity, February 2019 To create a new 3D project in version 6 or later, we will create our own pipeline, so do not ...

Posted by space1 on Mon, 27 Dec 2021 02:04:40 +0100

Unity implements its own circular Image component

1: Foreword Many pictures in the game are displayed in circles, such as avatars, skill icons, etc. the general practice is to use Image component + Mask component, but Mask component will affect efficiency (add additional drawcall), so it is not recommended to use it in large quantities Mask implementation principle of UGUI: using templat ...

Posted by brainstem on Sat, 25 Dec 2021 16:45:36 +0100

[shader] game special effects - simple energy shield

This article refers to: [1]Unity shader shield effect, author: QQ_ sixteen million nine hundred and eighty-two thousand three hundred and twenty-three [2]UnityShader - energy mask of screen space (simulating the energy mask of watchman Winston), author: Porco_ Have you ever played crash 3? This is the shield in the game Full of sense of tech ...

Posted by smoothrider on Sat, 25 Dec 2021 03:29:35 +0100

Unity C# game development event message dispatcher details

it happened like this But the lovely and loving program, little sister yuan, came to play with me again. Originally a happy chat, it turned into a technical seminar. She said that recently, she knocked the code, entrusted various events, various observer modes, and her hands were numb. She asked me if I had a good way Can I rub it for y ...

Posted by wannalearnit on Fri, 24 Dec 2021 22:14:11 +0100