AssetManager resource management and release of cocosCreator

Version: 3.4.0 Language: TypeScript Environment: Mac Review There are two previous blogs that explain: cocosCreator’s resources dynamic loading and preloading tells about static reference resources, dynamic loading and preloading. cocosCreator’s Bundle talks about the use of AssetManager’s built-in Bundles and custom Bundles The simple understanding is related to the use of static and dynamic reference […]

CocosCreator3.7.4 red dot system

Make explosive changes according to Unity’s red dot system import { _decorator, Component, Node } from ‘cc’; export class RedPoint { //path path:string = “”; //name name:string = “”; //Superior relationship parent:RedPoint[] = []; //Subordinate relationship child:RedPoint[] = []; //Whether it is lit IsLit:boolean = false; //structure constructor(_name:string,_parent?:RedPoint) { this.name = _name; this.path =_name; if(_parent […]

Continuous Profiling of Amazon EKS Container Service to Diagnose Application Performance with Pyroscope

The current status of Continuous Profiling In the observable field, Trace, Log, and Metrics serve as the “three pillars” to help engineers more easily gain insight into the internal problems of applications. However, it is often necessary for developers to drill down into the application to find the root cause of the bottleneck. In the […]

cocosCreator’s localStorage local storage and packaging expansion

Version: 3.8.0 Language: TypeScript Environment: Mac Introduction In cocosCreator, the localStorage interface is mainly used for local storage, and data is stored and read in the key-value format. The main interfaces are: Interface Description setItem(key, value ) Save the data of the specified index getItem(key) Get Data at the specified index removeItem(key) Remove data at […]

Python implements dual-targeting, distortion correction, and stereoscopic correction

1. The role of dual-targeting, distortion correction, and stereoscopic correction Binocular Targeting: 3D reconstruction and ranging: Through binocular targeting, you can determine the relative position and orientation between the two cameras, so that you can calculate the depth of the object based on the parallax information and perform 3D reconstruction and ranging. Pose Estimation: Binocular […]

cocosCreator’s dispatchEvent event distribution

Version: 3.8.0 Language: TypeScript Environment: Mac Node event dispatch cocosCreator supports using Node nodes for event dispatch (dispatchEvent). The event dispatch system is implemented in accordance with the Web’s event bubbling and capturing standards. Event dispatch is mainly passed to the parent node gradually through bubbling. After distribution, it will go through the following stages: […]

Simulink simulation of free vibration of multi-degree-of-freedom dual-mass spring oscillator

Write in front: This is my first coursework report for the first year of graduate school. After communicating with the teacher about the completion of the homework, there were also many small flaws. However, since I am in control of the direction and not in the mechanical direction, I did not continue. Improve the assignment […]

The use and expansion of Toggle and ToggleContainer check boxes in cocosCreator

Version: 3.4.0 Language: TypeScript Environment: Mac Introduction For the use of check boxes, there are two main components in cocosCreator: Toggle is used to implement CheckBox ToggleContainer is invisible and generally not used alone. It is mostly used with multiple Toggle to implement RadioButton The inheritance structure is as follows: Toggle Button Component ToggleContainer The […]

cocosCreator 3.x uses NodePool object pool and encapsulation

Version: cocosCreator 3.4.0 Language: TypeScript Environment: Mac NodePool Frequent use of instantiate and node.destroy in the project has a great cost on performance, such as the use and destruction of bullets in aircraft shooting. Therefore, the official provides NodePool, which is used as a cache pool for managing node objects. The definition is as follows: […]