Пример #1
0
 public override void Deserialize(BinaryReader binaryReader)
 {
     base.Deserialize(binaryReader);
     clearFlags            = (CameraClearFlags)binaryReader.ReadInt32();
     cullingMask           = binaryReader.ReadInt32();
     orthographic          = binaryReader.ReadBoolean();
     orthographicSize      = binaryReader.ReadSingle();
     fieldOfView           = binaryReader.ReadSingle();
     usePhysicalProperties = binaryReader.ReadBoolean();
     focalLength           = binaryReader.ReadSingle();
     sensorType            = binaryReader.ReadInt32();
     gateFit                = (Camera.GateFitMode)binaryReader.ReadInt32();
     nearClipPlane          = binaryReader.ReadSingle();
     farClipPlane           = binaryReader.ReadSingle();
     depth                  = binaryReader.ReadSingle();
     renderingPath          = binaryReader.ReadInt32();
     useOcclusionCulling    = binaryReader.ReadBoolean();
     allowHDR               = binaryReader.ReadBoolean();
     allowMSAA              = binaryReader.ReadBoolean();
     allowDynamicResolution = binaryReader.ReadBoolean();
     targetEye              = binaryReader.ReadInt32();
     m_backgroundColor      = SerializerKun.DesirializeObject <ColorKun>(binaryReader);
     m_lensShift            = SerializerKun.DesirializeObject <Vector2Kun>(binaryReader);
     m_rect                 = SerializerKun.DesirializeObject <RectKun>(binaryReader);
 }
Пример #2
0
        /// <summary>
        /// Deserialize
        /// </summary>
        /// <param name="binaryReader">BinaryReader</param>
        public override void Deserialize(BinaryReader binaryReader)
        {
            base.Deserialize(binaryReader);
            main                      = SerializerKun.DesirializeObject <MainModuleKun>(binaryReader);
            emission                  = binaryReader.ReadBoolean();
            shape                     = binaryReader.ReadBoolean();
            velocityOverLifetime      = binaryReader.ReadBoolean();
            limitVelocityOverLifetime = binaryReader.ReadBoolean();
            inheritVelocity           = binaryReader.ReadBoolean();
            forceOverLifetime         = binaryReader.ReadBoolean();
            colorOverLifetime         = binaryReader.ReadBoolean();
            colorBySpeed              = binaryReader.ReadBoolean();
            sizeOverLifetime          = binaryReader.ReadBoolean();
            sizeBySpeed               = binaryReader.ReadBoolean();

            rotationOverLifetime = binaryReader.ReadBoolean();
            rotationBySpeed      = binaryReader.ReadBoolean();
            externalForces       = binaryReader.ReadBoolean();
            noise                 = binaryReader.ReadBoolean();
            collision             = binaryReader.ReadBoolean();
            trigger               = binaryReader.ReadBoolean();
            subEmitters           = binaryReader.ReadBoolean();
            textureSheetAnimation = binaryReader.ReadBoolean();
            trails                = binaryReader.ReadBoolean();
            customData            = binaryReader.ReadBoolean();
            isEmitting            = binaryReader.ReadBoolean();
            isPaused              = binaryReader.ReadBoolean();
            isPlaying             = binaryReader.ReadBoolean();
            isStopped             = binaryReader.ReadBoolean();
        }
Пример #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="binaryReader"></param>
        public override void Deserialize(BinaryReader binaryReader)
        {
            base.Deserialize(binaryReader);
#if UNITY_2019_1_OR_NEWER
            lightShape          = (LightShape)binaryReader.ReadInt32();
            colorTemperature    = binaryReader.ReadSingle();
            useColorTemperature = binaryReader.ReadBoolean();
            renderingLayerMask  = binaryReader.ReadInt32();
#endif
            lightType         = (LightType)binaryReader.ReadInt32();
            range             = binaryReader.ReadSingle();
            spotAngle         = binaryReader.ReadSingle();
            innerSpotAngle    = binaryReader.ReadSingle();
            cookieSize        = binaryReader.ReadSingle();
            m_colorKun        = SerializerKun.DesirializeObject <ColorKun>(binaryReader);
            intensity         = binaryReader.ReadSingle();
            bounceIntensity   = binaryReader.ReadSingle();
            cookie            = binaryReader.ReadString();
            shadowsType       = (LightShadows)binaryReader.ReadInt32();
            shadowsStrength   = binaryReader.ReadSingle();
            shadowsResolution = (UnityEngine.Rendering.LightShadowResolution)binaryReader.ReadInt32();
            shadowsBias       = binaryReader.ReadSingle();
            shadowsNormalBias = binaryReader.ReadSingle();
            shadowsNearPlane  = binaryReader.ReadSingle();
            halo        = binaryReader.ReadBoolean();
            flare       = binaryReader.ReadString();
            renderMode  = (LightRenderMode)binaryReader.ReadInt32();
            cullingMask = binaryReader.ReadInt32();
        }
Пример #4
0
        /// <summary>
        /// Deserialize
        /// </summary>
        /// <param name="binaryReader">BinaryReader</param>
        public virtual void Deserialize(BinaryReader binaryReader)
        {
            m_currentResolutionWidth       = binaryReader.ReadInt32();
            m_currentResolutionHeight      = binaryReader.ReadInt32();
            m_currentResolutionRefreshRate = binaryReader.ReadInt32();
            m_width                          = binaryReader.ReadInt32();
            m_height                         = binaryReader.ReadInt32();
            m_sleepTimeout                   = binaryReader.ReadInt32();
            m_preferredRefreshRate           = binaryReader.ReadInt32();
            m_autorotateToLandscapeLeft      = binaryReader.ReadBoolean();
            m_autorotateToLandscapeRight     = binaryReader.ReadBoolean();
            m_autorotateToPortrait           = binaryReader.ReadBoolean();
            m_autorotateToPortraitUpsideDown = binaryReader.ReadBoolean();
            m_fullScreen                     = binaryReader.ReadBoolean();
#if UNITY_2019_1_OR_NEWER
            m_brightness = binaryReader.ReadSingle();
#endif
            m_dpi            = binaryReader.ReadSingle();
            m_fullScreenMode = (FullScreenMode)binaryReader.ReadInt32();
            m_orientation    = (ScreenOrientation)binaryReader.ReadInt32();
            m_safeArea       = SerializerKun.DesirializeObject <RectKun>(binaryReader);
#if UNITY_2019_1_OR_NEWER
            m_cutouts = SerializerKun.DesirializeObjects <RectKun>(binaryReader);
#endif
            m_resolutions = SerializerKun.DesirializeObjects <ResolutionKun>(binaryReader);
        }
Пример #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="binaryReader"></param>
 public override void Deserialize(BinaryReader binaryReader)
 {
     base.Deserialize(binaryReader);
     m_center  = SerializerKun.DesirializeObject <Vector3Kun>(binaryReader);
     direction = binaryReader.ReadInt32();
     height    = binaryReader.ReadSingle();
     radius    = binaryReader.ReadSingle();
 }
Пример #6
0
 /// <summary>
 /// Deserialize
 /// </summary>
 /// <param name="binaryReader">BinaryReader</param>
 public override void Deserialize(BinaryReader binaryReader)
 {
     base.Deserialize(binaryReader);
     m_bounds      = SerializerKun.DesirializeObject <BoundsKun>(binaryReader);
     contactOffset = binaryReader.ReadSingle();
     enabled       = binaryReader.ReadBoolean();
     isTrigger     = binaryReader.ReadBoolean();
     material      = binaryReader.ReadString();
 }
Пример #7
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="binaryReader"></param>
        public override void Deserialize(BinaryReader binaryReader)
        {
            base.Deserialize(binaryReader);

            m_localPosition    = SerializerKun.DesirializeObject <Vector3Kun>(binaryReader);
            m_localScale       = SerializerKun.DesirializeObject <Vector3Kun>(binaryReader);
            m_localRotation    = SerializerKun.DesirializeObject <Vector3Kun>(binaryReader);
            m_parentInstanceID = binaryReader.ReadInt32();
            m_childCount       = binaryReader.ReadInt32();
        }
Пример #8
0
 public override void Deserialize(BinaryReader binaryReader)
 {
     base.Deserialize(binaryReader);
     m_Sprite          = SerializerKun.DesirializeObject <SpriteKun>(binaryReader);
     m_Color           = SerializerKun.DesirializeObject <ColorKun>(binaryReader);
     m_FlipX           = binaryReader.ReadBoolean();
     m_FlipY           = binaryReader.ReadBoolean();
     m_DrawMode        = (SpriteDrawMode)binaryReader.ReadInt32();
     m_MaskInteraction = (SpriteMaskInteraction)binaryReader.ReadInt32();
     m_SpriteSortPoint = (SpriteSortPoint)binaryReader.ReadInt32();
 }
        /// <summary>
        /// Deserialize
        /// </summary>
        /// <param name="binaryReader">BinaryReader</param>
        public override void Deserialize(BinaryReader binaryReader)
        {
            base.Deserialize(binaryReader);

            m_sharedMesh = binaryReader.ReadString();
            m_quality    = (SkinQuality)binaryReader.ReadInt32();
            m_forceMatrixRecalculationPerRender = binaryReader.ReadBoolean();
            m_skinnedMotionVectors = binaryReader.ReadBoolean();
            m_updateWhenOffscreen  = binaryReader.ReadBoolean();
            m_localBounds          = SerializerKun.DesirializeObject <BoundsKun>(binaryReader);
            m_bones = SerializerKun.DesirializeObjects <TransformKun>(binaryReader);
        }
Пример #10
0
 public override void Deserialize(BinaryReader binaryReader)
 {
     base.Deserialize(binaryReader);
     m_doubleSidedGI           = binaryReader.ReadBoolean();
     m_enableInstancing        = binaryReader.ReadBoolean();
     m_mainTexPropIdx          = binaryReader.ReadInt32();
     m_passCount               = binaryReader.ReadInt32();
     m_renderQueue             = binaryReader.ReadInt32();
     m_globalIlluminationFlags = (MaterialGlobalIlluminationFlags)binaryReader.ReadInt32();
     m_shader         = SerializerKun.DesirializeObject <ShaderKun>(binaryReader);
     m_shaderKeywords = SerializerKun.DesirializeStrings(binaryReader);
     m_propertys      = SerializerKun.DesirializeObjects <Property>(binaryReader);
 }
Пример #11
0
        public override void Deserialize(BinaryReader binaryReader)
        {
            base.Deserialize(binaryReader);

            renderMode               = (RenderMode)binaryReader.ReadInt32();
            pixelPerfect             = binaryReader.ReadBoolean();
            sortingOrder             = binaryReader.ReadInt32();
            targetDisplay            = binaryReader.ReadInt32();
            additionalShaderChannels = (AdditionalCanvasShaderChannels)binaryReader.ReadInt32();
            worldCamera              = SerializerKun.DesirializeObject <CameraKun>(binaryReader);
            sortingLayerID           = binaryReader.ReadInt32();
            sortingLayerName         = binaryReader.ReadString();
        }
Пример #12
0
            /// <summary>
            ///
            /// </summary>
            /// <param name="binaryReader"></param>
            public virtual void Deserialize(BinaryReader binaryReader)
            {
                m_flags              = (UnityEngine.Rendering.ShaderPropertyFlags)binaryReader.ReadUInt32();
                m_textureDimension   = (UnityEngine.Rendering.TextureDimension)binaryReader.ReadInt32();
                m_type               = (UnityEngine.Rendering.ShaderPropertyType)binaryReader.ReadInt32();
                m_description        = binaryReader.ReadString();
                m_name               = binaryReader.ReadString();
                m_textureDefaultName = binaryReader.ReadString();
                m_nameId             = binaryReader.ReadInt32();
                m_defaultFloatValue  = binaryReader.ReadSingle();

                m_attributes         = SerializerKun.DesirializeStrings(binaryReader);
                m_rangeLimits        = SerializerKun.DesirializeObject <Vector2Kun>(binaryReader);
                m_defaultVectorValue = SerializerKun.DesirializeObject <Vector4Kun>(binaryReader);
            }
Пример #13
0
            public virtual void Deserialize(BinaryReader binaryReader)
            {
#if UNITY_2019_1_OR_NEWER
                m_flags = (UnityEngine.Rendering.ShaderPropertyFlags)binaryReader.ReadInt32();
                m_type  = (UnityEngine.Rendering.ShaderPropertyType)binaryReader.ReadInt32();
#endif
                m_textureDimension = (UnityEngine.Rendering.TextureDimension)binaryReader.ReadInt32();
                m_dirty            = binaryReader.ReadBoolean();
                m_nameId           = binaryReader.ReadInt32();
                m_floatValue       = binaryReader.ReadSingle();
                m_displayName      = binaryReader.ReadString();
                m_name             = binaryReader.ReadString();
                m_colorValue       = SerializerKun.DesirializeObject <ColorKun>(binaryReader);
                m_textureValue     = SerializerKun.DesirializeObject <TextureKun>(binaryReader);
                m_rangeLimits      = SerializerKun.DesirializeObject <Vector2Kun>(binaryReader);
                m_scale            = SerializerKun.DesirializeObject <Vector2Kun>(binaryReader);
                m_offset           = SerializerKun.DesirializeObject <Vector2Kun>(binaryReader);
                m_vectorValue      = SerializerKun.DesirializeObject <Vector4Kun>(binaryReader);
            }
Пример #14
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="binaryReader"></param>
        public virtual void Deserialize(BinaryReader binaryReader)
        {
            activeColorSpace             = (ColorSpace)binaryReader.ReadInt32();
            anisotropicFiltering         = (AnisotropicFiltering)binaryReader.ReadInt32();
            antiAliasing                 = binaryReader.ReadInt32();
            asyncUploadBufferSize        = binaryReader.ReadInt32();
            asyncUploadPersistentBuffer  = binaryReader.ReadBoolean();
            asyncUploadTimeSlice         = binaryReader.ReadInt32();
            billboardsFaceCameraPosition = binaryReader.ReadBoolean();
            desiredColorSpace            = (ColorSpace)binaryReader.ReadInt32();
            lodBias            = binaryReader.ReadSingle();
            masterTextureLimit = binaryReader.ReadInt32();
            maximumLODLevel    = binaryReader.ReadInt32();
            maxQueuedFrames    = binaryReader.ReadInt32();
            names = SerializerKun.DesirializeStrings(binaryReader);
            particleRaycastBudget           = binaryReader.ReadInt32();
            pixelLightCount                 = binaryReader.ReadInt32();
            realtimeReflectionProbes        = binaryReader.ReadBoolean();
            resolutionScalingFixedDPIFactor = binaryReader.ReadSingle();
            shadowCascade2Split             = binaryReader.ReadSingle();
            mShadowCascade4Split            = SerializerKun.DesirializeObject <Vector3Kun>(binaryReader);
            shadowCascades        = binaryReader.ReadInt32();
            shadowDistance        = binaryReader.ReadSingle();
            shadowmaskMode        = (ShadowmaskMode)binaryReader.ReadInt32();
            shadowNearPlaneOffset = binaryReader.ReadSingle();
            shadowProjection      = (ShadowProjection)binaryReader.ReadInt32();
            shadowResolution      = (ShadowResolution)binaryReader.ReadInt32();
            shadows = (ShadowQuality)binaryReader.ReadInt32();
#if UNITY_2019_1_OR_NEWER
            skinWeights = (SkinWeights)binaryReader.ReadInt32();
#endif
            softParticles                     = binaryReader.ReadBoolean();
            softVegetation                    = binaryReader.ReadBoolean();
            streamingMipmapsActive            = binaryReader.ReadBoolean();
            streamingMipmapsAddAllCameras     = binaryReader.ReadBoolean();
            streamingMipmapsMaxFileIORequests = binaryReader.ReadInt32();
            streamingMipmapsMaxLevelReduction = binaryReader.ReadInt32();
            streamingMipmapsMemoryBudget      = binaryReader.ReadSingle();
            streamingMipmapsRenderersPerFrame = binaryReader.ReadInt32();
            vSyncCount = binaryReader.ReadInt32();
            isDirty    = binaryReader.ReadBoolean();
        }
Пример #15
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="binaryReader"></param>
        public override void Deserialize(BinaryReader binaryReader)
        {
            base.Deserialize(binaryReader);

#if UNITY_2019_1_OR_NEWER
            m_forceRenderingOff = binaryReader.ReadBoolean();
            m_rayTracingMode    = (UnityEngine.Experimental.Rendering.RayTracingMode)binaryReader.ReadInt32();
#endif
            m_lightProbeUsage            = (UnityEngine.Rendering.LightProbeUsage)binaryReader.ReadInt32();
            m_motionVectorGenerationMode = (MotionVectorGenerationMode)binaryReader.ReadInt32();
            m_reflectionProbeUsage       = (UnityEngine.Rendering.ReflectionProbeUsage)binaryReader.ReadInt32();
            m_shadowCastingMode          = (UnityEngine.Rendering.ShadowCastingMode)binaryReader.ReadInt32();
            m_lightmapIndex                 = binaryReader.ReadInt32();
            m_rendererPriority              = binaryReader.ReadInt32();
            m_realtimeLightmapIndex         = binaryReader.ReadInt32();
            m_sortingLayerID                = binaryReader.ReadInt32();
            m_sortingOrder                  = binaryReader.ReadInt32();
            m_renderingLayerMask            = binaryReader.ReadUInt32();
            m_lightProbeProxyVolumeOverride = binaryReader.ReadString();
            m_sortingLayerName              = binaryReader.ReadString();
            m_receiveShadows                = binaryReader.ReadBoolean();
            m_allowOcclusionWhenDynamic     = binaryReader.ReadBoolean();
            m_enabled             = binaryReader.ReadBoolean();
            m_isPartOfStaticBatch = binaryReader.ReadBoolean();
            m_isVisible           = binaryReader.ReadBoolean();
            m_bounds                      = SerializerKun.DesirializeObject <BoundsKun>(binaryReader);
            m_probeAnchor                 = SerializerKun.DesirializeObject <TransformKun>(binaryReader);
            m_lightmapScaleOffset         = SerializerKun.DesirializeObject <Vector4Kun>(binaryReader);
            m_realtimeLightmapScaleOffset = SerializerKun.DesirializeObject <Vector4Kun>(binaryReader);
            m_localToWorldMatrix          = SerializerKun.DesirializeObject <Matrix4x4Kun>(binaryReader);
            m_worldToLocalMatrix          = SerializerKun.DesirializeObject <Matrix4x4Kun>(binaryReader);
            m_material                    = SerializerKun.DesirializeObject <MaterialKun>(binaryReader);
            m_sharedMaterial              = SerializerKun.DesirializeObject <MaterialKun>(binaryReader);
            m_materials                   = SerializerKun.DesirializeObjects <MaterialKun>(binaryReader);
            m_sharedMaterials             = SerializerKun.DesirializeObjects <MaterialKun>(binaryReader);
        }
Пример #16
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="binaryReader"></param>
 public virtual void Deserialize(BinaryReader binaryReader)
 {
     m_center = SerializerKun.DesirializeObject <Vector3Kun>(binaryReader);
     m_size   = SerializerKun.DesirializeObject <Vector3Kun>(binaryReader);
 }
Пример #17
0
 public override void Deserialize(BinaryReader binaryReader)
 {
     base.Deserialize(binaryReader);
     pivot  = SerializerKun.DesirializeObject <Vector2Kun>(binaryReader);
     border = SerializerKun.DesirializeObject <Vector4Kun>(binaryReader);
 }