Some problems in DirectX11 learning

About camera class implementation The core of the camera is actually the view matrix and the project matrix. The essence of the first person and the third person cameras is to update the above two matrices according to the operation. These two matrices need to be bound to constant buffers, which are u ...

Posted on Mon, 24 Feb 2020 06:29:23 -0500 by turbocueca

Unity - micro phone test recording, play recording, display sound wave chart (not Spectrum chart)

I've been looking for inspiration for game design recently. Looking for it, I suddenly remembered that in a previous airplane game, end game, he could automatically fire bullets according to the music files you played. The players could not fire bullets on their own. At that time, I always took a piece ...

Posted on Wed, 19 Feb 2020 06:22:22 -0500 by squariegoes

socket network communication module based on Unity

Establish connection and event distribution 1, Client 1. Define a message body. When the server communicates with the client, it transmits such information. using System.Collections; using System.Text; public class SocketMessage{ //Large modules, such as login registration, role module, shopping mal ...

Posted on Mon, 10 Feb 2020 00:44:57 -0500 by anna_cm

Unity entities -- Introduction to some parameters in jobcomponentsystem

Unity Entities|0.2.0-preview.18 Unity Entities|Official documents JobComponentSystem supports two types of lambda expressions: 1. JobComponentSystem.Entities.ForEach(lambda) depends on Entities and returns the Entities collection to select and filter through lambda 2.JobComponentSystem.Job.WithCo ...

Posted on Fri, 07 Feb 2020 08:03:29 -0500 by cent

The 15th expansion of Unity editor: NGUI mass replacement atlas tool

NGUI batch replace atlas tool Tool purpose Because the project needs to realize the skin changing function, i.e. multiple sets of UI atlas, provide tools to change atlas in batches, so as to view the effect under each skin (Atlas) of Prebab conveniently Sketch Map Gif operation diagram: Tool screenshot: On the left ...

Posted on Fri, 31 Jan 2020 10:53:51 -0500 by beaudoin

untiy link to photo learning log

1. Create client 2. Create the script of simplex photoengine 3. Establish server connection 4.Unity sends request (1) Client Send out private void SendReauest() { //Structural parameters var data=new Dictionary<byte, object>(); //Send out PhotonEngin ...

Posted on Sat, 18 Jan 2020 09:14:16 -0500 by kjelle392

The optimization process of compressing 20 m files from 30 seconds to 1 second

There is a requirement to transmit 10 photos from the front end, and then compress them into a compressed package to transmit and output through the network after the back end is processed. I didn't touch the Java compressed file before, so I went online to find an example and changed it. I can use i ...

Posted on Sun, 12 Jan 2020 06:34:17 -0500 by ramas

How to get the property list of a class?

How to get a list of all the properties of a class? #1 building I also face this demand. Through this discussion, I got another idea, Obj.GetType().GetProperties()[0].Name This also shows the property name. Obj.GetType().GetProperties().Count(); This shows some properties. Thank you. This is a good discussion. #2 build ...

Posted on Thu, 09 Jan 2020 09:26:55 -0500 by tat

Unity - based on delegated messaging mechanism

In the previous blog, I once wrote "Unity - message receiving and sending mechanism based on object-oriented polymorphic characteristics", but there are many levels of inheritance, which is not convenient for beginners to learn and use. This blog is based on the delegated message receiving and sending mechanism. Deve ...

Posted on Fri, 03 Jan 2020 00:36:33 -0500 by Calgaryalberta

CSharp override object pool

Editor's note In Unity, a large number of struct s and objects need to be applied. These two things are not unified in CSharp. There are many applications. The GC call of CSharp will lead to the Stop world phenomenon of Unity. This will reduce the Unity frame rate and affect the user experience. You need to find or write the object pool yoursel ...

Posted on Fri, 06 Dec 2019 19:41:20 -0500 by Smeep