Hi everyBody,
I created my raycast for when you look you active objects and descriptions…
The problem Need appear inside a Texmesh a button for this:
foreach (RoomInfo sala in PhotonNetwork.GetRoomList()){
TextMesh t = Room1.GetComponent() ;
string maxJugadores = sala.playerCount+ “/” +sala.maxPlayers;
t.text="sala: "+sala.name+“jugadores:”+ maxJugadores;
GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube);
//GameObject myGameObject = new GameObject(“Test Object”); // Make a new GO.
Rigidbody gameObjectsRigidBody = cube.AddComponent(); // Add the rigidbody.
gameObjectsRigidBody.mass = 0; // Set the GO’s mass to 5 via the Rigidbody.
gameObjectsRigidBody.useGravity=false;
//Collision col = cube.AddComponent();
BoxCollider _bc = (BoxCollider)cube.gameObject.AddComponent(typeof(BoxCollider));
_bc.center = Vector3.zero;
//cube.addComponent(‘collision’, { type: ‘box’, halfExtents: new pc.Vec3(sx * 0.5, sy * 0.5, sz * 0.5) });
// cube.addComponent(‘rigidbody’, { type: ‘dynamic’, mass: 1.0, enabled: true, restitution: 1.0 });
//cube.transform.position = new Vector3(0, 0.5F, 0);
//casi funcionando
GUI.Label (new Rect (100, 250+(cntSalas30), 200, 30),sala.name);
GUI.Label (new Rect (400, 250+(cntSalas30), 200, 30)," "+maxJugadores);
if (GUI.Button (new Rect (600, 250+(cntSalas*30), 160, 30), “Entrada sala”)) {
PhotonNetwork.JoinRoom(sala.name);
}
//casi funcionando
cntSalas++;
}
Because I need a list of the rooms in this salas have this atributes:
sala,name+sala.Playescount and the button.
OnGUI all good in PC but with my VR GEAR with a S6 EDGE can not use this menu.

