Asynchronous loading of Unity3D resources -- packaging and loading of AssetBundle resources

AssetBundle is like a ZIP compressed file, which stores special resources of different platforms (models/texture/prefabs/materials/audio clip/scenes...), which can be loaded at runtime.In the previous chapter, the method of asynchronous loading of resources is introduced. In this chapter, the old packing and loading method of AssetBundle resou ...

Posted on Thu, 16 Apr 2020 10:32:55 -0700 by scarabee

ECS Chunk screening mechanism

Tip: select the directory on the right to quickly find the required content Blog address: Portal   Advantages of such screening: The entity of the whole block can be operated, which is more flexible. In the cluster of objects, such as fish, troops, etc., the operation speed is faster.     conceptual analysis Block ...

Posted on Wed, 15 Apr 2020 00:18:56 -0700 by evolve4

Solution to GC problem caused by unpacking / boxing operation in Unity

In the development of Unity C, Enum or structure are often used as the key of Dictionary or the element of List, namely: List<EnumType>,Dictionary<EnumType, ValueType>,List<StructType>,Dictionary<StructType, ValueType>. During the ContainsKey() or [] operations of the List, Dictionary, Equals() and GetHasCode() will ...

Posted on Wed, 01 Apr 2020 13:57:54 -0700 by glassroof

unity access to iFLYTEK speech recognition SDK

1: Download the official SDK and open it with ASThen create a new Module 2: Drag the Classes in the unit and the MSCs in the official Demo to Libs, and import them into the library. Right click to open an add Button. 3: Create a new jniLibs folder under main, and drag armeabi-v7a from official D ...

Posted on Tue, 17 Mar 2020 09:04:07 -0700 by coelex

unity string information encryption

Recently, I had an idea to encrypt Unity programs and set their permissions. There are many ways to find them on the Internet 1. Set the account and password for the program, which you can understand without saying more. 2. Set the time for the program to use, if the program exceeds this time, it w ...

Posted on Thu, 05 Mar 2020 19:05:18 -0800 by hbsnam

Introduction to shader notes 12 implementation of various simple lighting models

1, Ambient light and self illumination Control ambient light: Window->Lighting->Ambient Source/Ambient Color/Ambient Intensity In the Shader, you can get the ambient light information through unity? Lightmode? Ambient. Self luminous: Most objects do not have self illumination characteristics, and ...

Posted on Thu, 13 Feb 2020 00:22:11 -0800 by madkris

Binary search based on interval

Home in 2019 before the new year Problem scenario: The format of the interval is as follows. It is a Json string as a whole. The startTime and endTime of each interval are arranged in the order of small to large. "[{\"endTime\":1578633955,\"startTime\":1578626876},{\"endTime\":1578640268,\"startTi ...

Posted on Mon, 20 Jan 2020 03:22:29 -0800 by centerwork

Simple asynchronous scene loading (including loading progress and synchronous loading method) of Unity tool class LoadSceneManager implementation

  Catalog Simple asynchronous scene loading (including loading progress and synchronous loading method) of Unity tool class LoadSceneManager implementation I. brief introduction II. Implementation principle 3, Precautions 4, Effect preview 5, Implementation steps 6, Key code 7, Reference E ...

Posted on Sun, 12 Jan 2020 05:44:26 -0800 by mispris006

Hot update architecture based on MVC framework implemented by XLua

1. Import XLua's package into the project 2-1. Write the main entry script GameMgr to start Lua program `public class GameMgr : MonoBehaviour { private void Awake() { gameObject.AddComponent<LuaMgr>(); } private void Start() { LuaMgr.Instance.DoString("require 'Script/Xlua/XLuaFrame/Common/Main'"); } }` 2 - ...

Posted on Fri, 20 Dec 2019 13:15:14 -0800 by alexinjamestown

Unity - IK test

Code using UnityEngine; public class MyIK : MonoBehaviour { public Transform headObj = null; public Transform bodyObj = null; public Transform leftFootObj = null; public Transform rightFootObj = null; public Transform leftHandObj = null; public Transform rightHandObj = null; public Transfo ...

Posted on Tue, 05 Nov 2019 08:59:34 -0800 by phpdev12