Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
This content is hosted by a third party provider that does not allow video views without acceptance of Targeting Cookies. Please set your cookie preferences for Targeting Cookies to yes if you wish to view videos from these providers.
1/6
Run-length encoding is a way to shrink down the amount of data needed for saving or sending worlds/texts/ etc.

run-length encoding is simple to understand.
E.g. if your 1D voxel-world is build out of stone like this:
[STONE] [STONE] [STONE] [STONE] [STONE]
your internal data probably looks something like this
a,a,a,a,a (a is representing STONE)
This asset now takes your data and transforms a,a,a,a,a INTO => 5a.
Super Simple but immensely effective!
Furthermore if your data-structure uses numbers and not characters (e.g. a for stone) this asset contains a NumberToCharacter and CharacterToNumber Parser! This makes it really simple to compress your data!


disclaimer: Out of the box this asset supports 52 different data values. This means in a tile world you can have at most 52 different tiles. This limit can be expanded by yourself! Also there are a lot of ways to bypass this limit.
----
All scripts are fully commented and can be changed to fit your needs.
Watch the video below to get a better idea what this asset is all about!
Video: Youtube Demo

RUN-LENGTH ENCODING (RLE)

(not enough ratings)
3 users have favourite this asset
(3)
$4.99
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
28.1 KB
Latest version
1.0
Latest release date
Aug 28, 2017
Original Unity version
2017.1.0
Support
Visit site
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR