Skip to content

Commit d09cb92

Browse files
update
adding comment
1 parent 349f83e commit d09cb92

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

com.unity.netcode.gameobjects/Runtime/Components/NetworkTransform.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ internal enum AxialType
3636
}
3737
#region NETWORK TRANSFORM STATE
3838

39+
/// <summary>
40+
/// Any <see cref="NetworkTransformState"/> public facing bool value is
41+
/// represented in this struct.
42+
/// This is what is used internally to get and set the current state's
43+
/// public flags/bools.
44+
/// </summary>
3945
internal struct PublicFlagStates
4046
{
4147
internal bool InLocalSpace;
@@ -294,6 +300,7 @@ public bool HasScaleChange
294300
get { return FlagStates.HasScaleChange; }
295301
}
296302

303+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
297304
internal void MarkChanged(AxialType axialType, bool changed)
298305
{
299306
switch (axialType)
@@ -318,6 +325,8 @@ internal void MarkChanged(AxialType axialType, bool changed)
318325
break;
319326
}
320327
}
328+
329+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
321330
internal void SetHasPosition(Axis axis, bool changed)
322331
{
323332
switch (axis)
@@ -353,6 +362,7 @@ internal void SetHasRotation(Axis axis, bool changed)
353362
FlagStates.HasRotAngleChange = HasRotAngleX || HasRotAngleY || HasRotAngleZ;
354363
}
355364

365+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
356366
internal void SetHasScale(Axis axis, bool changed)
357367
{
358368
switch (axis)

0 commit comments

Comments
 (0)