View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0.0
- Last updated
- First released
- Unity version
- 2020.3.38 or later
- Package size
- 381 KB
- Files
- 34
- Favorites
- 17
- Views in the past week
- 4
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
AnimatableList
- Price drop
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 4
AnimatableList screenshot 1
About this asset
We can not animate Array and List in Unity.
AnimatableList is an easy solution for this problem.
Note: It is not a replacement for List or Array. You shouldn't change all your Array and List to AnimatableList. You can only use it if you want multiple animated values.
From the publisher's Asset Store listing.
Technical details
AnimatableListN<T>
AnimatableLists are generic structs with fixed capacities.
The N shows the maximum capacity of the list.
This package contains AnimatableLists with different capacities.
(AnimatableList5<T>, AnimatableList10<T>, AnimatableList20<T>)
AnimatableList Creator Window
There is an editor window to create an AnimatableList with custom capacity.
AnimatableListN<T> Public Methods
It contains most of the original List<T> methods.
{
void Add(T item)
void Insert(int index, T item)
bool Contains(T item)
int IndexOf(T item)
void CopyTo(T[] array, int arrayIndex)
T[] ToArray()
bool Remove(T item)
void RemoveAt(int index)
void Clear()
IEnumerator<T> GetEnumerator()
}
AnimatableListN<T> Public Properties
{
int Count
int Length
int Capacity
bool HasReachedMaximumSize
}
IEnumerable
It can be used in a foreach loop.
{
foreach (var num in nums) print(num);
}
Indexer
It can be indexed like arrays.
{
m_Nums[0] = a;
b = m_Nums[1];
}
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2020.3.38f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.