public SVGAssetSnapshot Clone() { SVGAssetSnapshot snapshot = new SVGAssetSnapshot(); snapshot.format = this.format; snapshot.useGradients = this.useGradients; snapshot.antialiasing = this.antialiasing; snapshot.antialiasingWidth = this.antialiasingWidth; snapshot.meshCompression = this.meshCompression; snapshot.scale = this.scale; snapshot.vpm = this.vpm; snapshot.depthOffset = this.depthOffset; snapshot.compressDepth = this.compressDepth; snapshot.customPivotPoint = this.customPivotPoint; snapshot.pivotPoint = this.pivotPoint; snapshot.border = this.border; snapshot.sliceMesh = this.sliceMesh; snapshot.generateCollider = this.generateCollider; snapshot.keepSVGFile = this.keepSVGFile; snapshot.useLayers = this.useLayers; snapshot.ignoreSVGCanvas = this.ignoreSVGCanvas; snapshot.optimizeMesh = this.optimizeMesh; snapshot.generateNormals = this.generateNormals; snapshot.generateTangents = this.generateTangents; return(snapshot); }
public void CreateSnapshot() { if(serializedObject.isEditingMultipleObjects) { int targetLength = serializedObject.targetObjects.Length; svgAssetSnapshots = new SVGAssetSnapshot[targetLength]; for(int i = 0; i < targetLength; i++) { svgAssetSnapshots[i] = new SVGAssetSnapshot((SVGAsset)targets[i]); } } else { svgAssetSnapshots = new SVGAssetSnapshot[]{ new SVGAssetSnapshot(serializedObject) }; } }
public void Apply(SVGAssetSnapshot snapshot) { this.format = snapshot.format; this.useGradients = snapshot.useGradients; this.antialiasing = snapshot.antialiasing; this.meshCompression = snapshot.meshCompression; this.scale = snapshot.scale; this.vpm = snapshot.vpm; this.depthOffset = snapshot.depthOffset; this.compressDepth = snapshot.compressDepth; this.customPivotPoint = snapshot.customPivotPoint; this.pivotPoint = snapshot.pivotPoint; this.border = snapshot.border; this.sliceMesh = snapshot.sliceMesh; this.generateCollider = snapshot.generateCollider; this.keepSVGFile = snapshot.keepSVGFile; this.useLayers = snapshot.useLayers; this.ignoreSVGCanvas = snapshot.ignoreSVGCanvas; this.optimizeMesh = snapshot.optimizeMesh; this.generateNormals = snapshot.generateNormals; this.generateTangents = snapshot.generateTangents; }
public SVGAssetSnapshot Clone() { SVGAssetSnapshot snapshot = new SVGAssetSnapshot(); snapshot.format = this.format; snapshot.useGradients = this.useGradients; snapshot.antialiasing = this.antialiasing; snapshot.antialiasingWidth = this.antialiasingWidth; snapshot.meshCompression = this.meshCompression; snapshot.scale = this.scale; snapshot.vpm = this.vpm; snapshot.depthOffset = this.depthOffset; snapshot.compressDepth = this.compressDepth; snapshot.customPivotPoint = this.customPivotPoint; snapshot.pivotPoint = this.pivotPoint; snapshot.border = this.border; snapshot.sliceMesh = this.sliceMesh; snapshot.generateCollider = this.generateCollider; snapshot.keepSVGFile = this.keepSVGFile; snapshot.ignoreSVGCanvas = this.ignoreSVGCanvas; snapshot.optimizeMesh = this.optimizeMesh; snapshot.generateNormals = this.generateNormals; snapshot.generateTangents = this.generateTangents; return snapshot; }
public SVGAssetSnapshot(SVGAssetSnapshot snapshot) { Apply(snapshot); }
public void Apply(SVGAssetSnapshot snapshot) { this.format = snapshot.format; this.useGradients = snapshot.useGradients; this.antialiasing = snapshot.antialiasing; this.antialiasingWidth = snapshot.antialiasingWidth; this.meshCompression = snapshot.meshCompression; this.scale = snapshot.scale; this.vpm = snapshot.vpm; this.depthOffset = snapshot.depthOffset; this.compressDepth = snapshot.compressDepth; this.customPivotPoint = snapshot.customPivotPoint; this.pivotPoint = snapshot.pivotPoint; this.border = snapshot.border; this.sliceMesh = snapshot.sliceMesh; this.generateCollider = snapshot.generateCollider; this.keepSVGFile = snapshot.keepSVGFile; this.ignoreSVGCanvas = snapshot.ignoreSVGCanvas; this.optimizeMesh = snapshot.optimizeMesh; this.generateNormals = snapshot.generateNormals; this.generateTangents = snapshot.generateTangents; }