Publisher | Two Cats Code - Haikun Huang |
---|---|
File size | 3.84MB |
Number of files | 28 |
Latest version | 1 |
Latest release date | 2024-03-05 05:00:21 |
First release date | 2024-03-05 05:00:21 |
Supported Unity versions | 2018.4.2 or higher |
Two Cats Code | Online Documentation | Discord
This asset contains three tools: CACHE, POOLING, and Locker.
Usage
❌ gameObject.GetComponent();
✅ gameObject.Get();
❌ Instantiate(prefab, Vector3.zero, Quaternion.identity);
✅ prefab.Spawn(Vector3.zero, Quaternion.identity);
❌ Destroy(gameObject);
✅ gameObject.Despawn();
✅ Locker.Get("Count", 0);
✅ Locker.Set("Count", 0);
CACHE is a powerful tool designed specifically for Unity programmers using C#. It changed how you access and utilize components of game objects, ultimately optimizing your app's performance.
With CACHE, you can effortlessly cache previously accessed components, eliminating the need for repetitive and time-consuming lookups. By storing frequently used components in memory, CACHE significantly reduces the overhead associated with component retrieval, resulting in a remarkable boost in speed and efficiency.
Imagine the possibilities when you no longer worry about slow component access hindering your creativity. CACHE empowers you to focus on what truly matters – creating immersive and visually stunning experiences.
CACHE supports all access levels to the components, including the target game object, parent, and children.
POOLING is another powerful tool designed specifically for Unity programmers using C#. It changed how you spawn and despawn game objects, ultimately optimizing your app's performance.
Imagine a barrage-type design game. A large number of bullets are created and destroyed in the same frame. This will be a time-consuming task and lead to a decrease in-game performance. Using POOLING, you can significantly reduce the time to create and destroy bullets and improve the game's performance.
Whether you're building a game, an interactive application, or a virtual reality experience, CACHE & POOLING is your go-to solution for unleashing the full potential of Unity. Say goodbye to performance bottlenecks and hello to seamless development with CACHE & POOLING.
Locker is a handy tool that provides a space to store any data that can be used across the scenes. It is helpful to carry data from one scene to another scene.
Experience the difference today and take your Unity projects to new heights with this asset!
Features
- No need to learn.
- No setup is needed; use it as pure c# coding.
- Up to 2x faster than before.
- Seamlessly support and integrate into any projects and assets.
- CACHE and Pooling APIs can be mixed with Unity native APIs.
- Automated memory management without manual intervention.
- The corresponding parent and children caches are automatically refreshed when parenting changes.
- When a game object is despawned, it will re-parent to the pools.
- Locker can transfer any data from one scene to another scene.
- Source code.