read static method
ActorRotationConstraint
read(
- ActorArtboard artboard,
- StreamReader reader,
- ActorRotationConstraint? component
override
Implementation
static ActorRotationConstraint read(ActorArtboard artboard,
StreamReader reader, ActorRotationConstraint? component) {
// ignore: parameter_assignments
component ??= ActorRotationConstraint();
ActorTargetedConstraint.read(artboard, reader, component);
component._copy = reader.readBool('copy');
if (component._copy) {
component._scale = reader.readFloat32('scale');
}
component._enableMin = reader.readBool('enableMin');
if (component._enableMin) {
component._min = reader.readFloat32('min');
}
component._enableMax = reader.readBool('enableMax');
if (component._enableMax) {
component._max = reader.readFloat32('max');
}
component._offset = reader.readBool('offset');
component._sourceSpace = reader.readUint8('sourceSpaceId');
component._destSpace = reader.readUint8('destSpaceId');
component._minMaxSpace = reader.readUint8('minMaxSpaceId');
return component;
}