您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

22 行
658 B

using Unity.Entities;
namespace Unity.Transforms
{
/// <summary>
/// Side-Channel input for attaching child to parent transforms.
/// To use: Create new entity with Attach component.
/// On TransformSystem update, Attached and Parent components will
/// be added to child.
/// To detach: Remove Attached component from child.
/// To change parent: Create new entity with Attach component defining new relationship.
/// </summary>
public struct Attach : IComponentData
{
public Entity Parent;
public Entity Child;
}
public class AttachComponent : ComponentDataWrapper<Attach>
{
}
}