Class ManageBufferElementSystem<T>
A generic system that moves items from clips to buffer elements on the target entities
Namespace: Unity.Timeline
Syntax
public class ManageBufferElementSystem<T> : SystemBase where T : struct, IBufferElementData, IEquatable<T>
Type Parameters
Name | Description |
---|---|
T |
Remarks
To use this system, implement a buffer element type that implements IEquatable e.g. struct MyBufferElement : IBufferElement, IEquatable-MyBufferElement- { public int Value; }
then register a generic type for the component [assembly: RegisterGenericComponentType(typeof(Unity.Timeline.ManageBufferElement[Unity.Timeline.Tests.MyBufferElement]))]
and make an override of the system and add the execute always [ExecuteAlways] class MyBufferElementSystem : ManageBufferElementSystem[MyBufferElement] {}
Methods
OnCreate()
Declaration
protected override void OnCreate()
OnDestroy()
Declaration
protected override void OnDestroy()
OnUpdate()
Declaration
protected override void OnUpdate()