bake

AutoAuthoring

Dependencies

// cause this baker to rerun:
DependsOn(authoring.Image);

BakingTypes

var pos = GetComponent<Transform>().position;
var parentBox = GetComponentInParent<CompoundBBAuthoring>();

Blob

通常使用为 Component -> Baking -> BlobReference -> ComponentData, 在常用的 Baking 流程中添加 Bulid BlobReference

其他 API

var entities = CollectionHelper.CreateNativeArray<Entity>(config.Size * config.Size,  state.WorldUnmanaged.UpdateAllocator.ToAllocator);
TransformHelpers.ComputeWorldTransformMatrix(entity, out var matrix, ref localTransformLookup,  
    ref parentLookup, ref postTransformMatrixLookup);

最后更新于