Exemple #1
0
    public unsafe override void Unity_NamedSerialize(int depth)
    {
        byte[] var_0_cp_0;
        int    var_0_cp_1;

        if (depth <= 7)
        {
            if (this.leftAnchor == null)
            {
                this.leftAnchor = new UIRect.AnchorPoint();
            }
            UIRect.AnchorPoint          arg_3F_0 = this.leftAnchor;
            ISerializedNamedStateWriter arg_37_0 = SerializedNamedStateWriter.Instance;
            var_0_cp_0 = $FieldNamesStorage.$RuntimeNames;
            var_0_cp_1 = 0;
            arg_37_0.BeginMetaGroup(&var_0_cp_0[var_0_cp_1] + 2296);
            arg_3F_0.Unity_NamedSerialize(depth + 1);
            SerializedNamedStateWriter.Instance.EndMetaGroup();
        }
        if (depth <= 7)
        {
            if (this.rightAnchor == null)
            {
                this.rightAnchor = new UIRect.AnchorPoint();
            }
            UIRect.AnchorPoint arg_82_0 = this.rightAnchor;
            SerializedNamedStateWriter.Instance.BeginMetaGroup(&var_0_cp_0[var_0_cp_1] + 2307);
            arg_82_0.Unity_NamedSerialize(depth + 1);
            SerializedNamedStateWriter.Instance.EndMetaGroup();
        }
        if (depth <= 7)
        {
            if (this.bottomAnchor == null)
            {
                this.bottomAnchor = new UIRect.AnchorPoint();
            }
            UIRect.AnchorPoint arg_C5_0 = this.bottomAnchor;
            SerializedNamedStateWriter.Instance.BeginMetaGroup(&var_0_cp_0[var_0_cp_1] + 2319);
            arg_C5_0.Unity_NamedSerialize(depth + 1);
            SerializedNamedStateWriter.Instance.EndMetaGroup();
        }
        if (depth <= 7)
        {
            if (this.topAnchor == null)
            {
                this.topAnchor = new UIRect.AnchorPoint();
            }
            UIRect.AnchorPoint arg_108_0 = this.topAnchor;
            SerializedNamedStateWriter.Instance.BeginMetaGroup(&var_0_cp_0[var_0_cp_1] + 2332);
            arg_108_0.Unity_NamedSerialize(depth + 1);
            SerializedNamedStateWriter.Instance.EndMetaGroup();
        }
        SerializedNamedStateWriter.Instance.WriteInt32((int)this.updateAnchors, &var_0_cp_0[var_0_cp_1] + 741);
    }
Exemple #2
0
    public unsafe override void Unity_NamedSerialize(int depth)
    {
        byte[] var_0_cp_0;
        int    var_0_cp_1;

        if (depth <= 7)
        {
            if (this.leftAnchor == null)
            {
                this.leftAnchor = new UIRect.AnchorPoint();
            }
            UIRect.AnchorPoint          arg_3F_0 = this.leftAnchor;
            ISerializedNamedStateWriter arg_37_0 = SerializedNamedStateWriter.Instance;
            var_0_cp_0 = $FieldNamesStorage.$RuntimeNames;
            var_0_cp_1 = 0;
            arg_37_0.BeginMetaGroup(&var_0_cp_0[var_0_cp_1] + 2296);
            arg_3F_0.Unity_NamedSerialize(depth + 1);
            SerializedNamedStateWriter.Instance.EndMetaGroup();
        }
        if (depth <= 7)
        {
            if (this.rightAnchor == null)
            {
                this.rightAnchor = new UIRect.AnchorPoint();
            }
            UIRect.AnchorPoint arg_82_0 = this.rightAnchor;
            SerializedNamedStateWriter.Instance.BeginMetaGroup(&var_0_cp_0[var_0_cp_1] + 2307);
            arg_82_0.Unity_NamedSerialize(depth + 1);
            SerializedNamedStateWriter.Instance.EndMetaGroup();
        }
        if (depth <= 7)
        {
            if (this.bottomAnchor == null)
            {
                this.bottomAnchor = new UIRect.AnchorPoint();
            }
            UIRect.AnchorPoint arg_C5_0 = this.bottomAnchor;
            SerializedNamedStateWriter.Instance.BeginMetaGroup(&var_0_cp_0[var_0_cp_1] + 2319);
            arg_C5_0.Unity_NamedSerialize(depth + 1);
            SerializedNamedStateWriter.Instance.EndMetaGroup();
        }
        if (depth <= 7)
        {
            if (this.topAnchor == null)
            {
                this.topAnchor = new UIRect.AnchorPoint();
            }
            UIRect.AnchorPoint arg_108_0 = this.topAnchor;
            SerializedNamedStateWriter.Instance.BeginMetaGroup(&var_0_cp_0[var_0_cp_1] + 2332);
            arg_108_0.Unity_NamedSerialize(depth + 1);
            SerializedNamedStateWriter.Instance.EndMetaGroup();
        }
        SerializedNamedStateWriter.Instance.WriteInt32((int)this.updateAnchors, &var_0_cp_0[var_0_cp_1] + 741);
        if (depth <= 7)
        {
            SerializedNamedStateWriter.Instance.BeginMetaGroup(&var_0_cp_0[var_0_cp_1] + 2342);
            this.mColor.Unity_NamedSerialize(depth + 1);
            SerializedNamedStateWriter.Instance.EndMetaGroup();
        }
        SerializedNamedStateWriter.Instance.Align();
        SerializedNamedStateWriter.Instance.WriteInt32((int)this.mPivot, &var_0_cp_0[var_0_cp_1] + 2349);
        SerializedNamedStateWriter.Instance.WriteInt32(this.mWidth, &var_0_cp_0[var_0_cp_1] + 2098);
        SerializedNamedStateWriter.Instance.WriteInt32(this.mHeight, &var_0_cp_0[var_0_cp_1] + 2105);
        SerializedNamedStateWriter.Instance.WriteInt32(this.mDepth, &var_0_cp_0[var_0_cp_1] + 2356);
        SerializedNamedStateWriter.Instance.WriteBoolean(this.autoResizeBoxCollider, &var_0_cp_0[var_0_cp_1] + 2363);
        SerializedNamedStateWriter.Instance.Align();
        SerializedNamedStateWriter.Instance.WriteBoolean(this.hideIfOffScreen, &var_0_cp_0[var_0_cp_1] + 2385);
        SerializedNamedStateWriter.Instance.Align();
        SerializedNamedStateWriter.Instance.WriteBoolean(this.skipBoundsCalculations, &var_0_cp_0[var_0_cp_1] + 2401);
        SerializedNamedStateWriter.Instance.Align();
        SerializedNamedStateWriter.Instance.WriteInt32((int)this.keepAspectRatio, &var_0_cp_0[var_0_cp_1] + 2424);
        SerializedNamedStateWriter.Instance.WriteSingle(this.aspectRatio, &var_0_cp_0[var_0_cp_1] + 2440);
        SerializedNamedStateWriter.Instance.WriteInt32((int)this.mType, &var_0_cp_0[var_0_cp_1] + 2452);
        SerializedNamedStateWriter.Instance.WriteInt32((int)this.mFillDirection, &var_0_cp_0[var_0_cp_1] + 2458);
        SerializedNamedStateWriter.Instance.WriteSingle(this.mFillAmount, &var_0_cp_0[var_0_cp_1] + 2473);
        SerializedNamedStateWriter.Instance.WriteBoolean(this.mInvert, &var_0_cp_0[var_0_cp_1] + 2485);
        SerializedNamedStateWriter.Instance.Align();
        SerializedNamedStateWriter.Instance.WriteInt32((int)this.mFlip, &var_0_cp_0[var_0_cp_1] + 2493);
        SerializedNamedStateWriter.Instance.WriteInt32((int)this.centerType, &var_0_cp_0[var_0_cp_1] + 2499);
        SerializedNamedStateWriter.Instance.WriteInt32((int)this.leftType, &var_0_cp_0[var_0_cp_1] + 2510);
        SerializedNamedStateWriter.Instance.WriteInt32((int)this.rightType, &var_0_cp_0[var_0_cp_1] + 2519);
        SerializedNamedStateWriter.Instance.WriteInt32((int)this.bottomType, &var_0_cp_0[var_0_cp_1] + 2529);
        SerializedNamedStateWriter.Instance.WriteInt32((int)this.topType, &var_0_cp_0[var_0_cp_1] + 2540);
        if (depth <= 7)
        {
            SerializedNamedStateWriter.Instance.BeginMetaGroup(&var_0_cp_0[var_0_cp_1] + 4578);
            this.mRect.Unity_NamedSerialize(depth + 1);
            SerializedNamedStateWriter.Instance.EndMetaGroup();
        }
        SerializedNamedStateWriter.Instance.Align();
        if (depth <= 7)
        {
            SerializedNamedStateWriter.Instance.WriteUnityEngineObject(this.mTexture, &var_0_cp_0[var_0_cp_1] + 4584);
        }
        if (depth <= 7)
        {
            SerializedNamedStateWriter.Instance.WriteUnityEngineObject(this.mMat, &var_0_cp_0[var_0_cp_1] + 2796);
        }
        if (depth <= 7)
        {
            SerializedNamedStateWriter.Instance.WriteUnityEngineObject(this.mShader, &var_0_cp_0[var_0_cp_1] + 2801);
        }
        if (depth <= 7)
        {
            SerializedNamedStateWriter.Instance.BeginMetaGroup(&var_0_cp_0[var_0_cp_1] + 2809);
            this.mBorder.Unity_NamedSerialize(depth + 1);
            SerializedNamedStateWriter.Instance.EndMetaGroup();
        }
        SerializedNamedStateWriter.Instance.Align();
        SerializedNamedStateWriter.Instance.WriteBoolean(this.mFixedAspect, &var_0_cp_0[var_0_cp_1] + 2817);
        SerializedNamedStateWriter.Instance.Align();
    }