read static method
ActorAxisConstraint
read(
- ActorArtboard artboard,
- StreamReader reader,
- ActorAxisConstraint component
override
Implementation
static ActorAxisConstraint read(ActorArtboard artboard, StreamReader reader,
ActorAxisConstraint component) {
ActorTargetedConstraint.read(artboard, reader, component);
component._copyX = reader.readBool('copyX');
if (component._copyX) {
component._scaleX = reader.readFloat32('scaleX');
}
component._enableMinX = reader.readBool('enableMinX');
if (component._enableMinX) {
component._minX = reader.readFloat32('minX');
}
component._enableMaxX = reader.readBool('enableMaxX');
if (component._enableMaxX) {
component._maxX = reader.readFloat32('maxX');
}
component._copyY = reader.readBool('copyY');
if (component._copyY) {
component._scaleY = reader.readFloat32('scaleY');
}
component._enableMinY = reader.readBool('enableMinY');
if (component._enableMinY) {
component._minY = reader.readFloat32('minY');
}
component._enableMaxY = reader.readBool('enableMaxY');
if (component._enableMaxY) {
component._maxY = reader.readFloat32('maxY');
}
component._offset = reader.readBool('offset');
component._sourceSpace = reader.readUint8('sourceSpaceId');
component._destSpace = reader.readUint8('destSpaceId');
component._minMaxSpace = reader.readUint8('minMaxSpaceId');
return component;
}