Search Unity

Networked Cloud anchor object movement problem

Discussion in 'Multiplayer' started by Deleted User, Feb 21, 2019.

  1. Deleted User

    Deleted User

    Guest

    Hello,

    I'm currently developing an android application using Google's ARCore and cloud anchors and I am having a problem with getting objects to change location across the network on button click. The problem has to be somewhere surrounding the actual button because I know that the button runs the function but it doesn't do what I want it to do, if I call the function from player script it works fine (but I need this to work on button click!) and I've been stuck with it for days now. Some enlightenment here would be very appreciated. If anyone's wondering, I'm simply trying to edit (as I'm learning) the example code of cloud anchors therefore the source code belongs to Google.
    upload_2019-2-21_15-29-52.png
    What I'm trying to achieve is a simple transform.Translate on an object and make this move visible to clients.

    Things to note:
    Button has network identity
    Different functions to make any kind of movement/rotation
    Player prefab has network identity
    object prefabs in question have network transform component

    Source code comes from here:
    https://developers.google.com/ar/develop/java/cloud-anchors/quickstart-android
     
  2. manojahuja52

    manojahuja52

    Joined:
    Apr 12, 2018
    Posts:
    1
    Hey brother.
    Did you find any way around?