OnSerializeNetworkView NOT sending a bool value when button is pressed???

Is this supposed to be normal?

I just made a simple test and it seems OnSerializeNetworkView is not sending a bool value when a button is pressed. I've checked all variables and everything is ok because I switched back to RPC and it sends the bool value just fine.

Could someone please check this with me?

using UnityEngine;
using System.Collections;

public class Character_Network_Script : MonoBehaviour 
{
    public bool this_is_client = false;
    public bool test;
    public bool received_test;
    public bool test_result;

    void OnNetworkInstantiate(NetworkMessageInfo info) 
    {
        if (networkView.isMine)
        {
            this_is_client = true;
        }
    }

    void Update ()
    {
        test = false;
        received_test = false;
        test_result = false;
        if (this_is_client)
        {
            if (Input.GetKey (KeyCode.Alpha5))
            {
                test = true;
            }
        }
    }

    void OnSerializeNetworkView(BitStream stream, NetworkMessageInfo info) 
    {
        if (stream.isWriting) 
        {
            stream.Serialize(ref test);
        }
        else
        {
            stream.Serialize(ref received_test);
            test_result = received_test;
        }
    }
}

I think your problem is your Update method. Every instance is setting `test` to false, but only the owner can set it to true. If the others receive a network update test will turn true, but in Update it get set back to false. I would use such an Update function:

void Update ()
{
    if (this_is_client)
    {
        test = Input.GetKey (KeyCode.Alpha5);
    }
}

I don't even get what's test_result is good for? And received_test doesn't need to be a member variable. That's how i would sync the test variable:

void OnSerializeNetworkView(BitStream stream, NetworkMessageInfo info) 
{
    bool tmpTest = test;
    stream.Serialize(ref tmpTest);
    test = tmpTest;
}

Just did some final tweaks and it works now.

Thank you very much for your help! :D