Tag:unity

  • On unity script life cycle and execution sequence

    Time:2021-12-6

    catalogue 1、 Script lifecycle 2、 Monobehavior life cycle diagram 3、 Script execution order 4、 Custom execution order 1、 Script lifecycle Common inevitable events in unity script are shown in the following table name Trigger timing purpose Awake Called when a script instance is created For the initialization of game objects, note that the execution of […]

  • Solve unity URP cascade shadow seam problem

    Time:2021-11-15

    I tried the shadow of unity and found that there was a seam problem, I found some solutions online, which are very huge, Basically, you have to deal with cascading shadows yourself After reading the build in of URP, I thought of a dark way to deal with it simply. The operation comparison diagram is […]

  • Unity learning FSM finite state machine

    Time:2021-11-10

    A character in a game will have many states, so there needs to be a special class to manage these states. Otherwise, it will appear disorganized and not easy to increase or decrease the later state.Idea: since you want to facilitate management, you must first have a system class (specially used to store all States, […]

  • On shader in unity

    Time:2021-11-7

    catalogue 1、 Shader Basics 1.1 what is shader 1.2. Opengl rendering process 1.3 types of shaders 1.4 development language of shader 2、 Introduction to shader knowledge in unity 2.1 rendering process of shader in GPU 2.2 type of shader in unity 3、 Surface shader syntax 1、 Shader Basics 1.1 what is shader Before we talk […]

  • Explain the shadergraph Getting Started tutorial in unity

    Time:2021-10-30

    1、 About shadergraph Introduction:After the version of unity2018, a programmable rendering pipeline tool shadergraph has been introduced, which allows us to create and edit shaders by dragging and dropping on the visual interface. Official script: Shader graph enables you to build shaders intuitively. Instead of writing code, you create and connect nodes in the graphics […]

  • Tilemap process analysis in unity

    Time:2021-10-26

    As a 2D adventure game, map design is particularly important. We can choose to draw manually or import existing templates. Main process First create a folder:Tiles storagePalette storage paletteTilemap is equivalent to canvas and tile carrier Create a tilemap, a background, a foreground, and a border After loading the template, open the palette of tilemap […]

  • Summary of several methods of unity delay execution

    Time:2021-10-19

    catalogue Update timer Invoke Synergetic process DoTween When I first contacted unity, I used the timer in update to delay. Later, I found that there are so many more convenient ways to delay execution. Now let’s touch it. There are four kinds listed in this article. If there are mistakes and omissions, please add and […]

  • Entry level tutorial of realizing vortex portal effect with shadergraph in unity (recommended)

    Time:2021-10-2

    If your project has not undergone basic configuration, please check my blog entry to shadergraph of unity for details. Just follow the steps to complete the configuration. You can also learn the basic operation process by the way~This article teaches you how to make vortex effect. It’s an entry-level tutorial. Why don’t you try it? […]

  • Introduction to super cool dissolution effect realized by shadergraph in unity

    Time:2021-9-7

    catalogue preface 1、 Effect display 2、 Principle introduction 3、 Realization effect 4、 Use example 5、 Complete illustration preface If your project has not undergone basic configuration, please check my blog entry to shadergraph of unity for details. Just follow the steps to complete the configuration. You can also learn the basic operation process by the […]

  • Unity implements a color gradient slider

    Time:2021-8-27

    This example shares the specific code of unity to realize the color gradient slider for your reference. The specific contents are as follows Effect display code Just hang it directly on the ugui slider using UnityEngine; using UnityEngine.UI; public class ColorFade : MonoBehaviour { Color[] colors = new Color[]{ new Color(1, 0, 0), new Color(1, […]

  • Unity to achieve dynamic Leaderboard

    Time:2021-8-24

    This example shares the specific code of unity to realize the dynamic leaderboard for your reference. The specific contents are as follows When playing 2048 games, you should realize the function of leaderboard: 1. Beyond the display range, you can view it up and down by sliding the scroll bar2. Dynamically insert rows3. Automatically update […]

  • Unity Scrollview for unlimited sliding

    Time:2021-8-23

    This example shares the specific code of unity Scrollview to achieve infinite sliding effect for your reference. The specific contents are as follows 1、 Effect demonstration 2、 Foreword When there are 1000 emails in the mail and 1000 objects in the store list, if you directly instantiate 1000 data displays, it will greatly increase the […]