Object Chunks
EmptySkull
$14.99
(no ratings)
Date |
Price |
---|---|
日期和时间 |
价钱($) |
04/13(2021) |
14.99 |
11/20(2024) |
14.99 |
Jump AssetStore
Object Chunks is a plugin designed to optimize many scene-objects with performance-intensive components by dividing them into parts of the scene called chunks.Although the original project was created with Unity version 2021.1, the update was uploaded and tested in version 2019.4.15.A scene in Unity is a virtual space for your GameObjects. To optimize the calculations and behaviors on the scene-objects, the scene can be divided into chunks. This is, what the Object Chunks plugin is designed for. A chunk is a rectangular part of your virtual scene space and defined by a two-component integer vector (called Vector2Int in Unity), describing its X and Y position in your chunk grid. Once, the plugin is in use and chunks are calculated, the total space or number of chunks is nearly infinite since chunks are no physical or virtual objects of your data-memory, but abstract concepts to compare or differ object’s positions in your scene. Chunks are always two-dimensional but can easily be used in a three-dimensional context by extending their “height” since relevant distances (e.g., in “Open World” concepts) are most often of planar nature. The size of chunks as well as offsets for the chunk grid origin and further settings can be set by you, the user.Chunks are used to calculate, simplify, and compare objects positions. Every Unity-GameObject of your scene, identified as a “Chunk Object” can calculate the chunk it is part of easily and fast. This can be used to drastically simplify calculating positional relations between Chunk Objects.Furthermore, the plugin provides a method called Chunk-Loading, where a list of chunks marked as "active" is maintained. Objects, entering or leaving an active chunk, are processed by the system and receive callbacks for per-object behaviors. This makes it easy to get a list of all chunk objects in an optimized way. Loading chunks (e.g., by distance to a specified object, for example the player-avatar) is easy to setup and manage. In addition, the plugin supports multiple chunk-loading sources (e.g., different player-avatars).Dividing the Unity-scene into virtual "chunks" to simplify positional relationsLoad/Unload specific chunks and get easy and performant access to all objects insideHave multiple units/entities that load chunks around them by distance (e.g. Players)Easily convert a units position to its chunks position and vise-versaObjects, known by the chunks system, receive callbacks when their chunk-state changes.