您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
16 行
469 B
16 行
469 B
using System;
|
|
using Unity.Entities;
|
|
using Unity.Mathematics;
|
|
|
|
namespace Unity.Transforms
|
|
{
|
|
[UnityEngine.DisallowMultipleComponent]
|
|
[UnityEngine.AddComponentMenu("DOTS/Deprecated/Rotation-Deprecated")]
|
|
public class RotationProxy : ComponentDataProxy<Rotation>
|
|
{
|
|
protected override void ValidateSerializedData(ref Rotation serializedData)
|
|
{
|
|
serializedData.Value = math.normalizesafe(serializedData.Value);
|
|
}
|
|
}
|
|
}
|