该项目的目的是同时测试和演示来自 Unity DOTS 技术堆栈的多个新包。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

26 行
852 B

#if UNITY_EDITOR
using System;
using Unity.Entities;
using UnityEngine;
public class AnimSourceBankingAuthoring : AnimSourceAuthoring, IConvertGameObjectToEntity
{
// [ConfigVar(Name = "char.bankAmount", DefaultValue = "0", Description = "Set the bank amount something something")]
// public static ConfigVar bankAmount;
public AnimSourceBanking.Settings settings;
public Unity.Animation.Hybrid.RigComponent RigReferences;
public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem)
{
dstManager.AddComponentData(entity, new AnimSource.Data());
settings.rigReference = RigDefinitionAsset.ConvertRig(RigReferences);
dstManager.AddComponentData(entity, settings);
dstManager.AddComponentData(entity, AnimSource.AllowWrite.Default);
}
}
#endif