Example #1
0
        protected override YAMLMappingNode ExportYAMLRoot()
        {
            YAMLMappingNode node = base.ExportYAMLRoot();

            node.AddSerializedVersion(SerializedVersion);
            node.Add("m_СhildStates", ChildStates.ExportYAML());
            node.Add("m_ChildStateMachines", ChildStateMachines.ExportYAML());
            node.Add("m_AnyStateTransitions", AnyStateTransitions.ExportYAML());
            node.Add("m_EntryTransitions", EntryTransitions.ExportYAML());
            node.Add("m_StateMachineTransitions", StateMachineTransitions.ExportYAMLEnum());
            node.Add("m_StateMachineBehaviours", StateMachineBehaviours.ExportYAML());
            node.Add("m_AnyStatePosition", AnyStatePosition.ExportYAML());
            node.Add("m_EntryPosition", EntryPosition.ExportYAML());
            node.Add("m_ExitPosition", ExitPosition.ExportYAML());
            node.Add("m_ParentStateMachinePosition", ParentStateMachinePosition.ExportYAML());
            node.Add("m_DefaultState", DefaultState.ExportYAML());
            return(node);
        }
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("m_Name", Name);
            node.Add("m_StateMachine", StateMachine.ExportYAML(container));
            node.Add("m_Mask", Mask.ExportYAML(container));
            node.Add("m_Motions", Motions.ExportYAML(container));
            node.Add("m_Behaviours", Behaviours.ExportYAML(container));
            node.Add("m_BlendingMode", (int)BlendingMode);
            node.Add("m_SyncedLayerIndex", SyncedLayerIndex);
            node.Add("m_DefaultWeight", DefaultWeight);
            node.Add("m_IKPass", IKPass);
            node.Add("m_SyncedLayerAffectsTiming", SyncedLayerAffectsTiming);
            node.Add("m_Controller", Controller.ExportYAML(container));
            return(node);
        }
Example #3
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.AddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("m_ChildStates", ChildStates.ExportYAML(container));
            node.Add("m_ChildStateMachines", ChildStateMachines.ExportYAML(container));
            node.Add("m_AnyStateTransitions", AnyStateTransitions.ExportYAML(container));
            node.Add("m_EntryTransitions", EntryTransitions.ExportYAML(container));
            node.Add("m_StateMachineTransitions", StateMachineTransitions.ExportYAMLArrayPPtr(container));
            node.Add("m_StateMachineBehaviours", StateMachineBehaviours.ExportYAML(container));
            node.Add("m_AnyStatePosition", AnyStatePosition.ExportYAML(container));
            node.Add("m_EntryPosition", EntryPosition.ExportYAML(container));
            node.Add("m_ExitPosition", ExitPosition.ExportYAML(container));
            node.Add("m_ParentStateMachinePosition", ParentStateMachinePosition.ExportYAML(container));
            node.Add("m_DefaultState", DefaultState.ExportYAML(container));
            return(node);
        }
Example #4
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion));
            node.Add(NameName, Name);
            node.Add(StateMachineName, StateMachine.ExportYAML(container));
            node.Add(MaskName, Mask.ExportYAML(container));
            node.Add(MotionsName, Motions.ExportYAML(container));
            node.Add(BehavioursName, Behaviours.ExportYAML(container));
            node.Add(BlendingModeName, (int)BlendingMode);
            node.Add(SyncedLayerIndexName, SyncedLayerIndex);
            node.Add(DefaultWeightName, DefaultWeight);
            node.Add(IKPassName, IKPass);
            node.Add(SyncedLayerAffectsTimingName, SyncedLayerAffectsTiming);
            node.Add(ControllerName, Controller.ExportYAML(container));
            return(node);
        }
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("probeOcclusionLightIndex", ProbeOcclusionLightIndex);
            node.Add("occlusionMaskChannel", OcclusionMaskChannel);
            if (GetSerializedVersion(container.Version) >= 2)
            {
                node.Add("lightmapBakeMode", LightmapBakeMode.ExportYAML(container));
                node.Add("isBaked", IsBaked);
            }
            else
            {
                node.Add("lightmappingMask", LightmappingMask);
            }
            return(node);
        }
Example #6
0
        protected override YAMLMappingNode ExportYAMLRoot(IAssetsExporter exporter)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(exporter);

            node.AddSerializedVersion(GetSerializedVersion(exporter.Version));
            node.Add("m_Component", Components.ExportYAML(exporter));
            node.Add("m_Layer", Layer);
            node.Add("m_Name", Name);
#warning TODO: tag index to string name
            node.Add("m_TagString", "Untagged");
#warning what are those 3 params???
            node.Add("m_Icon", default(PPtr <Object>).ExportYAML(exporter));
            node.Add("m_NavMeshLayer", 0);
            node.Add("m_StaticEditorFlags", 0);
#warning TODO: fix
            node.Add("m_IsActive", IsExportAlwaysActive(exporter.Version) ? true : IsActive);
            return(node);
        }
Example #7
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(ProbeOcclusionLightIndexName, ProbeOcclusionLightIndex);
            node.Add(OcclusionMaskChannelName, OcclusionMaskChannel);
            if (GetSerializedVersion(container.Version) >= 2)
            {
                node.Add(LightmapBakeModeName, LightmapBakeMode.ExportYAML(container));
                node.Add(IsBakedName, IsBaked);
            }
            else
            {
                node.Add(LightmappingMaskName, LightmappingMask);
            }
            return(node);
        }
Example #8
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion));
            node.Add(GravityName, Gravity.ExportYAML(container));
            node.Add(DefaultMaterialName, DefaultMaterial.ExportYAML(container));
            node.Add(BounceThresholdName, BounceThreshold);
            node.Add(SleepThresholdName, GetSleepThreshold(container.Version));
            node.Add(DefaultContactOffsetName, GetDefaultContactOffset(container.Version));
            node.Add(DefaultSolverIterationsName, DefaultSolverIterations);
            node.Add(DefaultSolverVelocityIterationsName, GetDefaultSolverVelocityIterations(container.Version));
            node.Add(QueriesHitBackfacesName, QueriesHitBackfaces);
            node.Add(QueriesHitTriggersName, GetQueriesHitTriggers(container.Version));
            node.Add(EnableAdaptiveForceName, EnableAdaptiveForce);
            node.Add(ClothInterCollisionDistanceName, ClothInterCollisionDistance);
            node.Add(ClothInterCollisionStiffnessName, ClothInterCollisionStiffness);
            node.Add(ContactsGenerationName, (int)GetContactsGeneration(container.Version));
            node.Add(LayerCollisionMatrixName, GetLayerCollisionMatrix(container.Version).ExportYAML(true));
            node.Add(AutoSimulationName, GetAutoSimulation(container.Version));
            node.Add(AutoSyncTransformsName, GetAutoSyncTransforms(container.Version));
            node.Add(ReuseCollisionCallbacksName, ReuseCollisionCallbacks);
            node.Add(ClothInterCollisionSettingsToggleName, ClothInterCollisionSettingsToggle);
            if (HasClothGravity(container.ExportVersion))
            {
                node.Add(ClothGravityName, GetClothGravity(container.Version).ExportYAML(container));
            }
            node.Add(ContactPairsModeName, (int)ContactPairsMode);
            node.Add(BroadphaseTypeName, (int)BroadphaseType);
            node.Add(WorldBoundsName, GetWorldBounds(container.Version).ExportYAML(container));
            node.Add(WorldSubdivisionsName, GetWorldSubdivisions(container.Version));
            if (HasFrictionType(container.ExportVersion))
            {
                node.Add(FrictionTypeName, (int)FrictionType);
                node.Add(EnableEnhancedDeterminismName, EnableEnhancedDeterminism);
                node.Add(EnableUnifiedHeightmapsName, GetEnableUnifiedHeightmaps(container.Version));
            }
            if (HasDefaultMaxAngularSpeed(container.ExportVersion))
            {
                node.Add(ToSerializedVersion(container.ExportVersion) < 13 ? DefaultMaxAngluarSpeedName : DefaultMaxAngularSpeedName,
                         GetDefaultMaxAngularSpeed(container.Version));
            }
            return(node);
        }
Example #9
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.AddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add(ClearFlagsName, ClearFlags);
            node.Add(BackGroundColorName, BackGroundColor.ExportYAML(container));

            if (IsReadProjectionMatrixMode(container.ExportVersion))
            {
                node.Add(ProjectionMatrixModeName, (int)ProjectionMatrixMode);
                node.Add(SensorSizeName, SensorSize.ExportYAML(container));
                node.Add(LensShiftName, LensShift.ExportYAML(container));
            }
            if (IsReadGateFitMode(container.ExportVersion))
            {
                node.Add(GateFitModeName, (int)GateFitMode);
            }
            if (IsReadFocalLength(container.ExportVersion))
            {
                node.Add(FocalLengthName, FocalLength);
            }

            node.Add(NormalizedViewPortRectName, NormalizedViewPortRect.ExportYAML(container));
            node.Add(NearClipPlaneName, NearClipPlane);
            node.Add(FarClipPlaneName, FarClipPlane);
            node.Add(FieldOfViewName, FieldOfView);
            node.Add(OrthographicName, Orthographic);
            node.Add(OrthographicSizeName, OrthographicSize);
            node.Add(DepthName, Depth);
            node.Add(CullingMaskName, CullingMask.ExportYAML(container));
            node.Add(RenderingPathName, (int)RenderingPath);
            node.Add(TargetTextureName, TargetTexture.ExportYAML(container));
            node.Add(TargetDisplayName, TargetDisplay);
            node.Add(TargetEyeName, (int)TargetEye);
            node.Add(HDRName, HDR);
            node.Add(AllowMSAAName, AllowMSAA);
            node.Add(AllowDynamicResolutionName, AllowDynamicResolution);
            node.Add(ForceIntoRTName, ForceIntoRT);
            node.Add(OcclusionCullingName, OcclusionCulling);
            node.Add(StereoConvergenceName, StereoConvergence);
            node.Add(StereoSeparationName, StereoSeparation);
            return(node);
        }
Example #10
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(SubMeshesName, GetSubMeshes(container.Version).ExportYAML(container));
            node.Add(ShapesName, GetShapes(container.Version).ExportYAML(container));
            node.Add(BindPoseName, GetBindPoses(container.Version).ExportYAML(container));
            node.Add(BoneNameHashesName, GetBoneNameHashes(container.Version).ExportYAML(true));
            node.Add(RootBoneNameHashName, RootBoneNameHash);
            if (IsReadBonesAABB(container.ExportVersion))
            {
                node.Add(BonesAABBName, GetBonesAABB(container.Version).ExportYAML(container));
                node.Add(VariableBoneCountWeightsName, GetVariableBoneCountWeights(container.Version).ExportYAML(container));
            }
            node.Add(MeshCompressionName, (byte)MeshCompression);
            node.Add(IsReadableName, IsReadable);
            node.Add(KeepVerticesName, KeepVertices);
            node.Add(KeepIndicesName, KeepIndices);
            node.Add(IndexFormatName, (int)IndexFormat);
            node.Add(IndexBufferName, GetIndexBuffer(container.Version, container.Platform).ExportYAML());
            node.Add(SkinName, GetSkin(container.Version).ExportYAML(container));
            node.Add(VertexDataName, GetVertexData(container.Version).ExportYAML(container));
            node.Add(CompressedMeshName, CompressedMesh.ExportYAML(container));
            node.Add(LocalAABBName, LocalAABB.ExportYAML(container));
            node.Add(MeshUsageFlagsName, MeshUsageFlags);
            node.Add(BakedConvexCollisionMeshName, GetBakedConvexCollisionMesh(container.Version).ExportYAML());
            node.Add(BakedTriangleCollisionMeshName, GetBakedTriangleCollisionMesh(container.Version).ExportYAML());
            if (IsReadMeshOptimizationFlags(container.ExportVersion, container.ExportFlags))
            {
                node.Add(MeshOptimizationFlagsName, (int)GetMeshOptimizationFlags(container.Version, container.Flags));
            }
            else
            {
                node.Add(MeshOptimizedName, GetMeshOptimized(container.Version, container.Flags));
            }
            if (IsReadStreamData(container.ExportVersion))
            {
                StreamingInfo streamData = new StreamingInfo(true);
                node.Add(StreamDataName, streamData.ExportYAML(container));
            }

            return(node);
        }
Example #11
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(SubMeshesName, GetSubMeshes(container.Version).ExportYAML(container));
            node.Add(ShapesName, Shapes.ExportYAML(container));
            node.Add(BindPoseName, IsReadBindPoses(container.Version) ? BindPoses.ExportYAML(container) : YAMLSequenceNode.Empty);
#warning TODO?
            node.Add(BoneNamesName, YAMLSequenceNode.Empty);
            node.Add(BoneNameHashesName, IsReadBoneNameHashes(container.Version) ? BoneNameHashes.ExportYAML(false) : YAMLSequenceNode.Empty);
#warning TODO?
            node.Add(RootBoneNameName, YAMLScalarNode.Empty);
            node.Add(RootBoneNameHashName, RootBoneNameHash);
            node.Add(MeshCompressionName, (byte)MeshCompression);
            node.Add(IsReadableName, IsReadable);
            node.Add(KeepVerticesName, KeepVertices);
            node.Add(KeepIndicesName, KeepIndices);
            node.Add(IndexBufferName, GetIndexBuffer(container.Version, container.Platform).ExportYAML());
            node.Add(SkinName, GetSkin(container.Version).ExportYAML(container));
            node.Add(VertexDataName, GetVertexData(container.Version).ExportYAML(container));
            node.Add(CompressedMeshName, CompressedMesh.ExportYAML(container));
            node.Add(LocalAABBName, LocalAABB.ExportYAML(container));
            node.Add(MeshUsageFlagsName, MeshUsageFlags);
            if (IsReadCollision(container.Version))
            {
                node.Add(BakedConvexCollisionMeshName, CollisionData.BakedConvexCollisionMesh.ExportYAML());
                node.Add(BakedTriangleCollisionMeshName, CollisionData.BakedTriangleCollisionMesh.ExportYAML());
            }
            else
            {
                node.Add(BakedConvexCollisionMeshName, ArrayExtensions.EmptyBytes.ExportYAML());
                node.Add(BakedTriangleCollisionMeshName, ArrayExtensions.EmptyBytes.ExportYAML());
            }
#warning ???
            node.Add(MeshOptimizedName, 0);
            if (IsReadStreamData(container.ExportVersion))
            {
                node.Add(StreamDataName, StreamData.ExportYAML(container));
            }

            return(node);
        }
Example #12
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
#warning TODO: values acording to read version (current 2017.3.0f3)
            YAMLMappingNode node = base.ExportYAMLRoot(container);
            node.AddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("m_RenderMode", (int)RenderMode);
            node.Add("m_Camera", Camera.ExportYAML(container));
            node.Add("m_PlaneDistance", IsReadPlaneDistance(container.Version) ? PlaneDistance : 100.0f);
            node.Add("m_PixelPerfect", PixelPerfect);
            node.Add("m_ReceivesEvents", IsReadRecievesEvents(container.Version) ? RecievesEvents : true);
            node.Add("m_OverrideSorting", OverrideSorting);
            node.Add("m_OverridePixelPerfect", OverridePixelPerfect);
            node.Add("m_SortingBucketNormalizedSize", SortingBucketNormalizedSize);
            node.Add("m_AdditionalShaderChannelsFlag", AdditionalShaderChannelsFlag);
            node.Add("m_SortingLayerID", SortingLayerID);
            node.Add("m_SortingOrder", SortingOrder);
            node.Add("m_TargetDisplay", TargetDisplay);
            return(node);
        }
Example #13
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion));
            node.Add(LengthInSecName, LengthInSec);
            node.Add(SimulationSpeedName, SimulationSpeed);
            node.Add(StopActionName, (int)StopAction);
            node.Add(LoopingName, Looping);
            node.Add(PrewarmName, Prewarm);
            node.Add(PlayOnAwakeName, PlayOnAwake);
            node.Add(UseUnscaledTimeName, UseUnscaledTime);
            node.Add(AutoRandomSeedName, GetAutoRandomSeed(container.Version));
            node.Add(UseRigidbodyForVelocityName, GetUseRigidbodyForVelocity(container.Version));
            node.Add(StartDelayName, GetStartDelay(container.Version).ExportYAML(container));
            node.Add(MoveWithTransformName, (int)MoveWithTransform);
            node.Add(MoveWithCustomTransformName, MoveWithCustomTransform.ExportYAML(container));
            node.Add(ScalingModeName, (int)GetScalingMode(container.Version));
            node.Add(RandomSeedName, RandomSeed);
            node.Add(InitialModuleName, InitialModule.ExportYAML(container));
            node.Add(ShapeModuleName, ShapeModule.ExportYAML(container));
            node.Add(EmissionModuleName, EmissionModule.ExportYAML(container));
            node.Add(SizeModuleName, SizeModule.ExportYAML(container));
            node.Add(RotationModuleName, RotationModule.ExportYAML(container));
            node.Add(ColorModuleName, ColorModule.ExportYAML(container));
            node.Add(UVModuleName, UVModule.ExportYAML(container));
            node.Add(VelocityModuleName, VelocityModule.ExportYAML(container));
            node.Add(InheritVelocityModuleName, GetInheritVelocityModule(container.Version).ExportYAML(container));
            node.Add(ForceModuleName, ForceModule.ExportYAML(container));
            node.Add(ExternalForcesModuleName, GetExternalForcesModule(container.Version).ExportYAML(container));
            node.Add(ClampVelocityModuleName, ClampVelocityModule.ExportYAML(container));
            node.Add(NoiseModuleName, GetNoiseModule(container.Version).ExportYAML(container));
            node.Add(SizeBySpeedModuleName, SizeBySpeedModule.ExportYAML(container));
            node.Add(RotationBySpeedModuleName, RotationBySpeedModule.ExportYAML(container));
            node.Add(ColorBySpeedModuleName, ColorBySpeedModule.ExportYAML(container));
            node.Add(CollisionModuleName, CollisionModule.ExportYAML(container));
            node.Add(TriggerModuleName, GetTriggerModule(container.Version).ExportYAML(container));
            node.Add(SubModuleName, SubModule.ExportYAML(container));
            node.Add(LightsModuleName, GetLightsModule(container.Version).ExportYAML(container));
            node.Add(TrailModuleName, GetTrailModule(container.Version).ExportYAML(container));
            node.Add(CustomDataModuleName, GetCustomDataModule(container.Version).ExportYAML(container));
            return(node);
        }
Example #14
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(RenderModeName, (int)RenderMode);
            node.Add(CameraName, Camera.ExportYAML(container));
            node.Add(PlaneDistanceName, IsReadPlaneDistance(container.Version) ? PlaneDistance : 100.0f);
            node.Add(PixelPerfectName, PixelPerfect);
            node.Add(ReceivesEventsName, IsReadRecievesEvents(container.Version) ? RecievesEvents : true);
            node.Add(OverrideSortingName, OverrideSorting);
            node.Add(OverridePixelPerfectName, OverridePixelPerfect);
            node.Add(SortingBucketNormalizedSizeName, SortingBucketNormalizedSize);
            node.Add(AdditionalShaderChannelsFlagName, AdditionalShaderChannelsFlag);
            node.Add(SortingLayerIDName, SortingLayerID);
            node.Add(SortingOrderName, SortingOrder);
            node.Add(TargetDisplayName, TargetDisplay);
            return(node);
        }
Example #15
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.AddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("lengthInSec", LengthInSec);
            node.Add("simulationSpeed", SimulationSpeed);
            node.Add("stopAction", StopAction);
            node.Add("looping", Looping);
            node.Add("prewarm", Prewarm);
            node.Add("playOnAwake", PlayOnAwake);
            node.Add("useUnscaledTime", UseUnscaledTime);
            node.Add("autoRandomSeed", GetAutoRandomSeed(container.Version));
            node.Add("useRigidbodyForVelocity", GetUseRigidbodyForVelocity(container.Version));
            node.Add("startDelay", GetStartDelay(container.Version).ExportYAML(container));
            node.Add("moveWithTransform", (int)MoveWithTransform);
            node.Add("moveWithCustomTransform", MoveWithCustomTransform.ExportYAML(container));
            node.Add("scalingMode", (int)GetScalingMode(container.Version));
            node.Add("randomSeed", RandomSeed);
            node.Add("InitialModule", InitialModule.ExportYAML(container));
            node.Add("ShapeModule", ShapeModule.ExportYAML(container));
            node.Add("EmissionModule", EmissionModule.ExportYAML(container));
            node.Add("SizeModule", SizeModule.ExportYAML(container));
            node.Add("RotationModule", RotationModule.ExportYAML(container));
            node.Add("ColorModule", ColorModule.ExportYAML(container));
            node.Add("UVModule", UVModule.ExportYAML(container));
            node.Add("VelocityModule", VelocityModule.ExportYAML(container));
            node.Add("InheritVelocityModule", GetInheritVelocityModule(container.Version).ExportYAML(container));
            node.Add("ForceModule", ForceModule.ExportYAML(container));
            node.Add("ExternalForcesModule", GetExternalForcesModule(container.Version).ExportYAML(container));
            node.Add("ClampVelocityModule", ClampVelocityModule.ExportYAML(container));
            node.Add("NoiseModule", GetNoiseModule(container.Version).ExportYAML(container));
            node.Add("SizeBySpeedModule", SizeBySpeedModule.ExportYAML(container));
            node.Add("RotationBySpeedModule", RotationBySpeedModule.ExportYAML(container));
            node.Add("ColorBySpeedModule", ColorBySpeedModule.ExportYAML(container));
            node.Add("CollisionModule", CollisionModule.ExportYAML(container));
            node.Add("TriggerModule", GetTriggerModule(container.Version).ExportYAML(container));
            node.Add("SubModule", SubModule.ExportYAML(container));
            node.Add("LightsModule", GetLightsModule(container.Version).ExportYAML(container));
            node.Add("TrailModule", GetTrailModule(container.Version).ExportYAML(container));
            node.Add("CustomDataModule", GetCustomDataModule(container.Version).ExportYAML(container));
            return(node);
        }
Example #16
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion));
            node.Add(AvatarSkeletonName, AvatarSkeleton.ExportYAML(container));
            node.Add(AvatarSkeletonPoseName, AvatarSkeletonPose.ExportYAML(container));
            node.Add(DefaultPoseName, GetDefaultPose(container.Version).ExportYAML(container));
            node.Add(SkeletonNameIDArrayName, GetSkeletonNameIDArray(container.Version).ExportYAML(true));
            node.Add(HumanName, Human.ExportYAML(container));
            node.Add(HumanSkeletonIndexArrayName, HumanSkeletonIndexArray.ExportYAML(true));
            node.Add(HumanSkeletonReverseIndexArrayName, HumanSkeletonReverseIndexArray.ExportYAML(true));
            node.Add(RootMotionBoneIndexName, RootMotionBoneIndex);
            node.Add(RootMotionBoneXName, RootMotionBoneX.ExportYAML(container));
            node.Add(RootMotionSkeletonName, RootMotionSkeleton.ExportYAML(container));
            node.Add(RootMotionSkeletonPoseName, RootMotionSkeletonPose.ExportYAML(container));
            node.Add(RootMotionSkeletonIndexArrayName, GetRootMotionSkeletonIndexArray(container.Version).ExportYAML(true));
            return(node);
        }
Example #17
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(PatchesName, Patches.ExportYAML(container));
            node.Add(DetailPrototypesName, DetailPrototypes.ExportYAML(container));
            node.Add(PatchCountName, PatchCount);
            node.Add(PatchSamplesName, PatchSamples);
            node.Add(RandomRotationsName, RandomRotations.ExportYAML(container));
            node.Add(WavingGrassTintName, WavingGrassTint.ExportYAML(container));
            node.Add(WavingGrassStrengthName, WavingGrassStrength);
            node.Add(WavingGrassAmountName, WavingGrassAmount);
            node.Add(WavingGrassSpeedName, WavingGrassSpeed);
            node.Add(TreeInstancesName, TreeInstances.ExportYAML(container));
            node.Add(TreePrototypesName, TreePrototypes.ExportYAML(container));
            node.Add(PreloadTextureAtlasDataName, PreloadTextureAtlasData.ExportYAML(container));
            return(node);
        }
Example #18
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
#warning TODO: values acording to read version (current 2017.3.0f3)
            YAMLMappingNode node = new YAMLMappingNode();
            node.AddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("m_AvatarSkeleton", AvatarSkeleton.ExportYAML(container));
            node.Add("m_AvatarSkeletonPose", AvatarSkeletonPose.ExportYAML(container));
            node.Add("m_DefaultPose", GetDefaultPose(container.Version).ExportYAML(container));
            node.Add("m_SkeletonNameIDArray", GetSkeletonNameIDArray(container.Version).ExportYAML(true));
            node.Add("m_Human", Human.ExportYAML(container));
            node.Add("m_HumanSkeletonIndexArray", HumanSkeletonIndexArray.ExportYAML(true));
            node.Add("m_HumanSkeletonReverseIndexArray", GetHumanSkeletonReverseIndexArray(container.Version).ExportYAML(true));
            node.Add("m_RootMotionBoneIndex", RootMotionBoneIndex);
            node.Add("m_RootMotionBoneX", RootMotionBoneX.ExportYAML(container));
            node.Add("m_RootMotionSkeleton", RootMotionSkeleton.ExportYAML(container));
            node.Add("m_RootMotionSkeletonPose", RootMotionSkeletonPose.ExportYAML(container));
            node.Add("m_RootMotionSkeletonIndexArray", GetRootMotionSkeletonIndexArray(container.Version).ExportYAML(true));
            return(node);
        }
Example #19
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(TypeName, (int)Type);
            node.Add(ColorName, Color.ExportYAML(container));
            node.Add(IntensityName, Intensity);
            node.Add(RangeName, Range);
            node.Add(SpotAngleName, SpotAngle);
            if (IsReadInnerSpotAngle(container.ExportVersion))
            {
                node.Add(InnerSpotAngleName, InnerSpotAngle);
            }
            node.Add(CookieSizeName, CookieSize);
            node.Add(ShadowsName, Shadows.ExportYAML(container));
            node.Add(CookieName, Cookie.ExportYAML(container));
            node.Add(DrawHaloName, DrawHalo);
            if (IsReadBakingOutput(container.ExportVersion, container.ExportFlags))
            {
                node.Add(BakingOutputName, BakingOutput.ExportYAML(container));
            }
            node.Add(FlareName, Flare.ExportYAML(container));
            node.Add(RenderModeName, (int)RenderMode);
            node.Add(CullingMaskName, CullingMask.ExportYAML(container));
            if (IsReadRenderingLayerMask(container.ExportVersion))
            {
                node.Add(RenderingLayerMaskName, RenderingLayerMask);
            }
            node.Add(LightmappingName, (int)Lightmapping);
            node.Add(AreaSizeName, AreaSize.ExportYAML(container));
            node.Add(BounceIntensityName, BounceIntensity);
            node.Add(ColorTemperatureName, ColorTemperature);
            node.Add(UseColorTemperatureName, UseColorTemperature);
            if (IsReadBoundingSphereOverride(container.ExportVersion))
            {
                node.Add(BoundingSphereOverrideName, BoundingSphereOverride.ExportYAML(container));
                node.Add(UseBoundingSphereOverrideName, UseBoundingSphereOverride);
            }
            node.Add(ShadowRadiusName, GetShadowRadius(container.Version, container.Flags));
            node.Add(ShadowAngleName, GetShadowAngle(container.Version, container.Flags));
            return(node);
        }
Example #20
0
        protected override YAMLMappingNode ExportYAMLRoot(IAssetsExporter exporter)
        {
#warning TODO: values acording to read version (current 2017.3.0f3)
            YAMLMappingNode node = base.ExportYAMLRoot(exporter);
            node.AddSerializedVersion(GetSerializedVersion(exporter.Version));
            node.Add("lengthInSec", LengthInSec);
            node.Add("simulationSpeed", SimulationSpeed);
            node.Add("stopAction", StopAction);
            node.Add("looping", Looping);
            node.Add("prewarm", Prewarm);
            node.Add("playOnAwake", PlayOnAwake);
            node.Add("useUnscaledTime", UseUnscaledTime);
            node.Add("autoRandomSeed", AutoRandomSeed);
            node.Add("useRigidbodyForVelocity", UseRigidbodyForVelocity);
            node.Add("startDelay", StartDelay.ExportYAML(exporter));
            node.Add("moveWithTransform", MoveWithTransform);
            node.Add("moveWithCustomTransform", MoveWithCustomTransform.ExportYAML(exporter));
            node.Add("scalingMode", ScalingMode);
            node.Add("randomSeed", RandomSeed);
            node.Add("InitialModule", InitialModule.ExportYAML(exporter));
            node.Add("ShapeModule", ShapeModule.ExportYAML(exporter));
            node.Add("EmissionModule", EmissionModule.ExportYAML(exporter));
            node.Add("SizeModule", SizeModule.ExportYAML(exporter));
            node.Add("RotationModule", RotationModule.ExportYAML(exporter));
            node.Add("ColorModule", ColorModule.ExportYAML(exporter));
            node.Add("UVModule", UVModule.ExportYAML(exporter));
            node.Add("VelocityModule", VelocityModule.ExportYAML(exporter));
            node.Add("InheritVelocityModule", InheritVelocityModule.ExportYAML(exporter));
            node.Add("ForceModule", ForceModule.ExportYAML(exporter));
            node.Add("ExternalForcesModule", ExternalForcesModule.ExportYAML(exporter));
            node.Add("ClampVelocityModule", ClampVelocityModule.ExportYAML(exporter));
            node.Add("NoiseModule", NoiseModule.ExportYAML(exporter));
            node.Add("SizeBySpeedModule", SizeBySpeedModule.ExportYAML(exporter));
            node.Add("RotationBySpeedModule", RotationBySpeedModule.ExportYAML(exporter));
            node.Add("ColorBySpeedModule", ColorBySpeedModule.ExportYAML(exporter));
            node.Add("CollisionModule", CollisionModule.ExportYAML(exporter));
            node.Add("TriggerModule", TriggerModule.ExportYAML(exporter));
            node.Add("SubModule", SubModule.ExportYAML(exporter));
            node.Add("LightsModule", LightsModule.ExportYAML(exporter));
            node.Add("TrailModule", TrailModule.ExportYAML(exporter));
            node.Add("CustomDataModule", CustomDataModule.ExportYAML(exporter));
            return(node);
        }
Example #21
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion));
            node.Add(DeferredName, ExportDeferred(container));
            node.Add(DeferredReflectionsName, ExportDeferredReflections(container));
            node.Add(ScreenSpaceShadowsName, ExportScreenSpaceShadows(container));
            node.Add(LegacyDeferredName, ExportLegacyDeferred(container));
            node.Add(DepthNormalsName, ExportDepthNormals(container));
            node.Add(MotionVectorsName, ExportMotionVectors(container));
            node.Add(LightHaloName, ExportLightHalo(container));
            node.Add(LensFlareName, ExportLensFlare(container));
            node.Add(AlwaysIncludedShadersName, ExportAlwaysIncludedShaders(container));
            node.Add(PreloadedShadersName, GetPreloadedShaders(container.Version).ExportYAML(container));
            node.Add(SpritesDefaultMaterialName, GetSpritesDefaultMaterial(container.Version).ExportYAML(container));
            node.Add(CustomRenderPipelineName, CustomRenderPipeline.ExportYAML(container));
            node.Add(TransparencySortModeName, (int)TransparencySortMode);
            node.Add(TransparencySortAxisName, GetTransparencySortAxis(container.Version).ExportYAML(container));
            node.Add(DefaultRenderingPathName, (int)GetDefaultRenderingPath(container.Version, container.Flags));
            node.Add(DefaultMobileRenderingPathName, (int)GetDefaultMobileRenderingPath(container.Version, container.Flags));
            node.Add(TierSettingsName, GetTierSettings(container.Version, container.Platform, container.Flags).ExportYAML(container));
            node.Add(LightmapStrippingName, (int)GetLightmapStripping(container.Flags));
            node.Add(FogStrippingName, (int)GetFogStripping(container.Flags));
            node.Add(InstancingStrippingName, (int)GetInstancingStripping(container.Flags));
            node.Add(LightmapKeepPlainName, GetLightmapKeepPlain(container.Version, container.Flags));
            node.Add(LightmapKeepDirCombinedName, GetLightmapKeepDirCombined(container.Version, container.Flags));
            node.Add(LightmapKeepDynamicPlainName, GetLightmapKeepDynamicPlain(container.Version, container.Flags));
            node.Add(LightmapKeepDynamicDirCombinedName, GetLightmapKeepDynamicDirCombined(container.Version, container.Flags));
            node.Add(LightmapKeepShadowMaskName, GetLightmapKeepShadowMask(container.Version, container.Flags));
            node.Add(LightmapKeepSubtractiveName, GetLightmapKeepSubtractive(container.Version, container.Flags));
            node.Add(FogKeepLinearName, GetFogKeepLinear(container.Version, container.Flags));
            node.Add(FogKeepExpName, GetFogKeepExp(container.Version, container.Flags));
            node.Add(FogKeepExp2Name, GetFogKeepExp2(container.Version, container.Flags));
            node.Add(AlbedoSwatchInfosName, GetAlbedoSwatchInfos(container.Version, container.Flags).ExportYAML(container));
            node.Add(LightsUseLinearIntensityName, LightsUseLinearIntensity);
            node.Add(LightsUseColorTemperatureName, LightsUseColorTemperature);
            if (HasLogWhenShaderIsCompiled(container.ExportVersion))
            {
                node.Add(LogWhenShaderIsCompiledName, LogWhenShaderIsCompiled);
            }
            return(node);
        }
Example #22
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion));
            node.Add(NameName, Name);
            node.Add(RectName, Rect.ExportYAML(container));
            node.Add(AlignmentName, (int)Alignment);
            node.Add(PivotName, Pivot.ExportYAML(container));
            if (HasBorder(container.ExportVersion))
            {
                node.Add(BorderName, Border.ExportYAML(container));
            }
            if (HasOutline(container.ExportVersion))
            {
                node.Add(OutlineName, Outline.ExportYAML(container));
            }
            if (HasPhysicsShape(container.ExportVersion))
            {
                node.Add(PhysicsShapeName, PhysicsShape.ExportYAML(container));
            }
            if (HasTessellationDetail(container.ExportVersion))
            {
                node.Add(TessellationDetailName, TessellationDetail);
            }
            if (HasBones(container.ExportVersion))
            {
                node.Add(BonesName, Bones.ExportYAML(container));
                node.Add(SpriteIDName, SpriteID);
            }
            if (HasInternalID(container.ExportVersion))
            {
                node.Add(InternalIDName, InternalID);
            }
            if (HasBones(container.ExportVersion))
            {
                node.Add(VerticesName, Vertices.ExportYAML(container));
                node.Add(IndicesName, Indices.ExportYAML(true));
                node.Add(EdgesName, Edges.ExportYAML(container));
                node.Add(WeightsName, Weights.ExportYAML(container));
            }
            return(node);
        }
Example #23
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
#warning TODO: values acording to read version (current 2017.3.0f3)
            YAMLMappingNode node = new YAMLMappingNode();
            node.AddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("m_Patches", Patches.ExportYAML(container));
            node.Add("m_DetailPrototypes", DetailPrototypes.ExportYAML(container));
            node.Add("m_PatchCount", PatchCount);
            node.Add("m_PatchSamples", PatchSamples);
            node.Add("m_RandomRotations", RandomRotations.ExportYAML(container));
            node.Add("WavingGrassTint", WavingGrassTint.ExportYAML(container));
            node.Add("m_WavingGrassStrength", WavingGrassStrength);
            node.Add("m_WavingGrassAmount", WavingGrassAmount);
            node.Add("m_WavingGrassSpeed", WavingGrassSpeed);
            node.Add("m_TreeInstances", TreeInstances.ExportYAML(container));
            node.Add("m_TreePrototypes", TreePrototypes.ExportYAML(container));
            node.Add("m_PreloadTextureAtlasData", PreloadTextureAtlasData.ExportYAML(container));
            return(node);
        }
        public YAMLNode ExportYAML(IAssetsExporter exporter)
        {
#warning TODO: values acording to read version (current 2017.3.0f3)
            YAMLMappingNode node = new YAMLMappingNode();
            node.AddSerializedVersion(GetSerializedVersion(exporter.Version));
            node.Add("time", Time);
            if (IsReadCurve(exporter.Version))
            {
                node.Add("countCurve", CountCurve.ExportYAML(exporter));
            }
            else if (Config.IsExportTopmostSerializedVersion)
            {
                MinMaxCurve countCurve = new MinMaxCurve(MinValue, MaxValue);
                node.Add("countCurve", countCurve.ExportYAML(exporter));
            }
            node.Add("cycleCount", CycleCount);
            node.Add("repeatInterval", RepeatInterval);
            return(node);
        }
Example #25
0
        public YAMLNode ExportYAML(IAssetsExporter exporter)
        {
#warning TODO: values acording to read version (current 2017.3.0f3)
            YAMLMappingNode node = new YAMLMappingNode();
            node.AddSerializedVersion(GetSerializedVersion(exporter.Version));
            node.Add("m_AvatarSkeleton", AvatarSkeleton.ExportYAML(exporter));
            node.Add("m_AvatarSkeletonPose", AvatarSkeletonPose.ExportYAML(exporter));
            node.Add("m_DefaultPose", DefaultPose.ExportYAML(exporter));
            node.Add("m_SkeletonNameIDArray", IsReadDefaultPose(exporter.Version) ? SkeletonNameIDArray.ExportYAML(true) : YAMLSequenceNode.Empty);
            node.Add("m_Human", Human.ExportYAML(exporter));
            node.Add("m_HumanSkeletonIndexArray", HumanSkeletonIndexArray.ExportYAML(true));
            node.Add("m_HumanSkeletonReverseIndexArray", IsReadHumanSkeletonReverseIndexArray(exporter.Version) ? HumanSkeletonReverseIndexArray.ExportYAML(true) : YAMLSequenceNode.Empty);
            node.Add("m_RootMotionBoneIndex", RootMotionBoneIndex);
            node.Add("m_RootMotionBoneX", RootMotionBoneX.ExportYAML(exporter));
            node.Add("m_RootMotionSkeleton", RootMotionSkeleton.ExportYAML(exporter));
            node.Add("m_RootMotionSkeletonPose", RootMotionSkeletonPose.ExportYAML(exporter));
            node.Add("m_RootMotionSkeletonIndexArray", IsReadRootMotionSkeleton(exporter.Version) ? RootMotionSkeletonIndexArray.ExportYAML(true) : YAMLSequenceNode.Empty);
            return(node);
        }
Example #26
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(TerrainDataName, TerrainData.ExportYAML(container));
            node.Add(TreeDistanceName, TreeDistance);
            node.Add(TreeBillboardDistanceName, TreeBillboardDistance);
            node.Add(TreeCrossFadeLengthName, TreeCrossFadeLength);
            node.Add(TreeMaximumFullLODCountName, TreeMaximumFullLODCount);
            node.Add(DetailObjectDistanceName, DetailObjectDistance);
            node.Add(DetailObjectDensityName, DetailObjectDensity);
            node.Add(HeightmapPixelErrorName, HeightmapPixelError);
            node.Add(SplatMapDistanceName, SplatMapDistance);
            node.Add(HeightmapMaximumLODName, HeightmapMaximumLOD);
            node.Add(CastShadowsName, CastShadows);
            node.Add(DrawHeightmapName, DrawHeightmap);
            if (IsReadDrawInstanced(container.ExportVersion))
            {
                node.Add(DrawInstancedName, DrawInstanced);
            }
            node.Add(DrawTreesAndFoliageName, DrawTreesAndFoliage);
            node.Add(ReflectionProbeUsageName, (int)ReflectionProbeUsage);
            node.Add(MaterialTypeName, (int)MaterialType);
            node.Add(LegacySpecularName, LegacySpecular.ExportYAML(container));
            node.Add(LegacyShininessName, LegacyShininess);
            node.Add(MaterialTemplateName, MaterialTemplate.ExportYAML(container));
            node.Add(BakeLightProbesForTreesName, BakeLightProbesForTrees);
            if (IsReadPreserveTreePrototypeLayers(container.ExportVersion))
            {
                node.Add(PreserveTreePrototypeLayersName, PreserveTreePrototypeLayers);
            }
#warning TODO: get lightmap by index and fill those values
            node.Add(ScaleInLightmapName, 0.0512f);
            node.Add(LightmapParametersName, default(PPtr <Object>).ExportYAML(container));
            if (IsReadGroupingID(container.ExportVersion))
            {
                node.Add(GroupingIDName, GroupingID);
                node.Add(AllowAutoConnectName, AllowAutoConnect);
            }
            return(node);
        }
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion));
            node.Add(BuildTargetName, BuildTarget);
            node.Add(MaxTextureSizeName, MaxTextureSize);
            if (HasResizeAlgorithm(container.ExportVersion))
            {
                node.Add(ResizeAlgorithmName, (int)ResizeAlgorithm);
            }
            node.Add(TextureFormatName, (int)GetTextureFormat(container.Version));
            if (HasTextureCompression(container.ExportVersion))
            {
                node.Add(TextureCompressionName, (int)TextureCompression);
            }
            if (HasCompressionQuality(container.ExportVersion))
            {
                node.Add(CompressionQualityName, GetCompressionQuality(container));
            }
            if (HasCrunchedCompression(container.ExportVersion))
            {
                node.Add(CrunchedCompressionName, CrunchedCompression);
            }
            if (HasAllowsAlphaSplitting(container.ExportVersion))
            {
                node.Add(AllowsAlphaSplittingName, AllowsAlphaSplitting);
            }
            if (HasOverridden(container.ExportVersion))
            {
                node.Add(OverriddenName, Overridden);
            }
            if (HasAndroidETC2FallbackOverride(container.ExportVersion))
            {
                node.Add(AndroidETC2FallbackOverrideName, (int)AndroidETC2FallbackOverride);
            }
            if (HasForceMaximumCompressionQuality_BC6H_BC7(container.ExportVersion))
            {
                node.Add(ForceMaximumCompressionQuality_BC6H_BC7Name, GetForceMaximumCompressionQuality_BC6H_BC7(container.Version));
            }
            return(node);
        }
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion));
            node.Add(HeightsName, Heights.ExportYAML(true));
            if (HasHoles(container.ExportVersion))
            {
                node.Add(HolesName, Holes.ExportYAML());
                node.Add(HolesLODName, HolesLOD.ExportYAML());
                node.Add(EnableHolesTextureCompressionName, EnableHolesTextureCompression);
            }
            if (HasShifts(container.ExportVersion))
            {
                node.Add(ShiftsName, Shifts.ExportYAML(container));
            }

            node.Add(PrecomputedErrorName, PrecomputedError.ExportYAML());
            node.Add(MinMaxPatchHeightsName, MinMaxPatchHeights.ExportYAML());
            if (HasDefaultPhysicMaterial(container.ExportVersion))
            {
                node.Add(DefaultPhysicMaterialName, DefaultPhysicMaterial.ExportYAML(container));
            }

            if (HasWidth(container.ExportVersion))
            {
                node.Add(WidthName, Width);
                node.Add(HeightName, Height);
            }
            if (HasThickness(container.ExportVersion))
            {
                node.Add(ThicknessName, Thickness);
            }
            if (HasResolution(container.ExportVersion))
            {
                node.Add(ResolutionName, Resolution);
            }

            node.Add(LevelsName, Levels);
            node.Add(ScaleName, Scale.ExportYAML(container));
            return(node);
        }
Example #29
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(TextName, Text);
            node.Add(AnchorName, (short)Anchor);
            node.Add(AlignmentName, (short)Alignment);
            node.Add(PixelOffsetName, PixelOffset.ExportYAML(container));
            node.Add(LineSpacingName, LineSpacing);
            node.Add(TabSizeName, TabSize);
            node.Add(FontName, Font.ExportYAML(container));
            node.Add(MaterialName, Material.ExportYAML(container));
            node.Add(FontSizeName, FontSize);
            node.Add(FontStyleName, (int)FontStyle);
            node.Add(ColorName, GetColor(container.Version).ExportYAML(container));
            node.Add(PixelCorrectName, PixelCorrect);
            node.Add(RichTextName, GetRichText(container.Version));
            return(node);
        }
Example #30
0
        public YAMLNode ExportYAML(IAssetsExporter exporter)
        {
#warning TODO: values acording to read version (current 2017.3.0f3)
            YAMLMappingNode node = new YAMLMappingNode();
            node.AddSerializedVersion(GetSerializedVersion(exporter.Version));
            node.Add("prototype", Prototype.ExportYAML(exporter));
            node.Add("prototypeTexture", PrototypeTexture.ExportYAML(exporter));
            node.Add("minWidth", MinWidth);
            node.Add("maxWidth", MaxWidth);
            node.Add("minHeight", MinHeight);
            node.Add("maxHeight", MaxHeight);
            node.Add("noiseSpread", NoiseSpread);
            node.Add("bendFactor", BendFactor);
            node.Add("healthyColor", HealthyColor.ExportYAML(exporter));
            node.Add("dryColor", DryColor.ExportYAML(exporter));
            node.Add("lightmapFactor", LightmapFactor);
            node.Add("renderMode", RenderMode);
            node.Add("usePrototypeMesh", UsePrototypeMesh);
            return(node);
        }