@@ -465,7 +465,7 @@ namespace FlaxEngine
|
||||
/// <summary>
|
||||
/// A single keyframe that can be injected into linear curve.
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 2)]
|
||||
public struct Keyframe : IComparable, IComparable<Keyframe>
|
||||
{
|
||||
/// <summary>
|
||||
@@ -720,7 +720,7 @@ namespace FlaxEngine
|
||||
/// <summary>
|
||||
/// A single keyframe that can be injected into Bezier curve.
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 2)]
|
||||
public struct Keyframe : IComparable, IComparable<Keyframe>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -1542,7 +1542,7 @@ namespace Flax.Build.Bindings
|
||||
var structIndent = "";
|
||||
if (buildData.Target != null & buildData.Target.IsEditor)
|
||||
structContents.Append(structIndent).AppendLine("[HideInEditor]");
|
||||
structContents.Append(structIndent).AppendLine("[StructLayout(LayoutKind.Sequential)]");
|
||||
structContents.Append(structIndent).AppendLine("[StructLayout(LayoutKind.Sequential, Pack = 2)]");
|
||||
structContents.Append(structIndent).Append("public struct ").Append(structureInfo.Name).Append("Internal");
|
||||
if (structureInfo.BaseType != null && structureInfo.IsPod)
|
||||
structContents.Append(" : ").Append(GenerateCSharpNativeToManaged(buildData, new TypeInfo { Type = structureInfo.BaseType.Name }, structureInfo));
|
||||
|
||||
Reference in New Issue
Block a user