Teach you to do FSM state machine in Unity

        The last article talked about the implementation of the general state machine (at the end of the article). This time, I will talk about how to use it in practice. This time, first do a simple state machine to control Animator.         Since the models I use for animat ...

Posted by allspiritseve on Sat, 06 Nov 2021 17:10:36 -0700

[Unity uses UGUI to realize the UI interface of King glory] load page - mute button and page improvement

Effect display [Unity uses UGUI to realize the king glory UI interface (II)] load page - mute button and page improvement Click the button to close the game sound effect through the Toggle component, and the Image component improves the loading page 1. Open project Open our Unity Hub, find the king glory UI interface project you crea ...

Posted by JeremyTiki on Tue, 02 Nov 2021 11:22:27 -0700

Interaction between WebGL and web pages published by Unity2021

(1) First, let's talk about how Unity calls page methods. First, create a Plugins folder in the Asset directory of the project, and then create a. txt file in the folder. The name doesn't matter. After creation, change the extension to. jslib. The file shall contain the following contents: mergeInto(LibraryManager.library, { Hello: functio ...

Posted by Stargate on Fri, 29 Oct 2021 00:24:21 -0700

Unity UI Toolkit Manual document reading record

UI Toolkit introduction UI Toolkit is the latest UI system of Unity. It is mainly designed to optimize the performance of different platforms. This technology is developed based on standard web technologies. You can use UI Toolkit to expand Unity Editor, or use Runtime UI in packaged games and Applications (but you need to install UI Toolkit P ...

Posted by smashita on Tue, 19 Oct 2021 21:38:43 -0700

The atlas of Unity tool is simply encapsulated by cutting into a single picture (performance optimization of Unity's own SpritePackage packaging Atlas)

The atlas of Unity tool is simply encapsulated by cutting into a single picture (performance optimization of Unity's own SpritePackage packaging Atlas) catalogue 1, Brief introduction 2, Implementation principle 3, Precautions 4, Implementation steps 5, Key code additional 1, Some error sorting 2, Atlas packaging for Unity performanc ...

Posted by JakeJ on Mon, 11 Oct 2021 21:33:58 -0700

C# foundation of Unity learning 21 -- inheritance, as usage, static

1. Succession A subclass can use members of the parent class. A parent class cannot use subclass members, but only its own members. A reference of a parent type points to an object of a child class. Only parent class members can be used. If you need to access subclass members, you need to cast. definition: class Gun { publi ...

Posted by dannyluked on Mon, 11 Oct 2021 15:13:43 -0700

[Unity]Roguelike random map generation

Basic room generation First, you need to determine which direction of the previous room is generated in each room generation. Therefore, you need to declare an enumeration value to record the up, down, left and right directions Create a script RoomGenerator to declare the direction enumeration value /// <summary> ///Direction ...

Posted by newzub on Sun, 10 Oct 2021 07:21:33 -0700

[Unity SurfaceShader] learning notes

Improving diffuse reflection with texture The effect of HalfLambert we did in the last article is as follows: We can see that there is no natural transition from the bright part to the dark part, and the dark part is directly painted dark gray. Just like a sketch drawn by a beginner, the dark part is directly blackened without change. This ...

Posted by Drabin on Thu, 23 Sep 2021 01:42:57 -0700

3D sandbox game development log - 1

preface background study unity And other related content (game server, lua,shader It has been a year, and c++The level of algorithm is also in this year It's time to patiently make a qualified game to summarize and refine myself, because I have only spare time and I'm the only one at present, Therefore, the development of the project is e ...

Posted by timmah22 on Fri, 03 Sep 2021 11:44:15 -0700

Unity3D-iOS calls the native application details interface (which pops up directly in the game)

It could have been through Unity Application.OpenUrl However, there is another way above iOS6 to pop up the evaluation box in the application Then I added a function to the previous NativeShare, and it can be used. Look at the previous code here: Unity3D - Implementation of calling IOS native sharing  The first is the. h file: #import &lt ...

Posted by emmbec on Tue, 14 Jul 2020 08:40:25 -0700