public static ActorScaleConstraint Read(Actor actor, BinaryReader reader, ActorScaleConstraint component = null) { if (component == null) { component = new ActorScaleConstraint(); } ActorAxisConstraint.Read(actor, reader, component); return(component); }
public void Copy(ActorAxisConstraint node, Actor resetActor) { base.Copy(node, resetActor); m_CopyX = node.m_CopyX; m_CopyY = node.m_CopyY; m_ScaleX = node.m_ScaleX; m_ScaleY = node.m_ScaleY; m_EnableMinX = node.m_EnableMinX; m_EnableMinY = node.m_EnableMinY; m_EnableMaxX = node.m_EnableMaxX; m_EnableMaxY = node.m_EnableMaxY; m_MinX = node.m_MinX; m_MinY = node.m_MinY; m_MaxX = node.m_MaxX; m_MaxY = node.m_MaxY; m_Offset = node.m_Offset; m_SourceSpace = node.m_SourceSpace; m_DestSpace = node.m_DestSpace; m_MinMaxSpace = node.m_MinMaxSpace; }
public static ActorAxisConstraint Read(Actor actor, BinaryReader reader, ActorAxisConstraint component) { ActorTargetedConstraint.Read(actor, reader, component); if ((component.m_CopyX = reader.ReadByte() == 1)) { component.m_ScaleX = reader.ReadSingle(); } if ((component.m_EnableMinX = reader.ReadByte() == 1)) { component.m_MinX = reader.ReadSingle(); } if ((component.m_EnableMaxX = reader.ReadByte() == 1)) { component.m_MaxX = reader.ReadSingle(); } // Y Axis if ((component.m_CopyY = reader.ReadByte() == 1)) { component.m_ScaleY = reader.ReadSingle(); } if ((component.m_EnableMinY = reader.ReadByte() == 1)) { component.m_MinY = reader.ReadSingle(); } if ((component.m_EnableMaxY = reader.ReadByte() == 1)) { component.m_MaxY = reader.ReadSingle(); } component.m_Offset = reader.ReadByte() == 1; component.m_SourceSpace = (TransformSpace)reader.ReadByte(); component.m_DestSpace = (TransformSpace)reader.ReadByte(); component.m_MinMaxSpace = (TransformSpace)reader.ReadByte(); return(component); }