您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
19 行
558 B
19 行
558 B
using System;
|
|
using System.ComponentModel;
|
|
using Unity.Entities;
|
|
using Unity.Mathematics;
|
|
|
|
namespace Unity.Transforms
|
|
{
|
|
[Obsolete("Position has been renamed. Use Translation instead (UnityUpgradable) -> Translation", true)]
|
|
[System.ComponentModel.EditorBrowsable(EditorBrowsableState.Never)]
|
|
public struct Position : IComponentData { public float3 Value; }
|
|
|
|
[Serializable]
|
|
[WriteGroup(typeof(LocalToWorld))]
|
|
[WriteGroup(typeof(LocalToParent))]
|
|
public struct Translation : IComponentData
|
|
{
|
|
public float3 Value;
|
|
}
|
|
}
|