using System.Collections;
using System.Collections.Generic;
public class CustomBehaviour : MonoBehaviour
/// Queries the database and names the object based on the result.
// Use this for initialization
// Add RemoteTransformations script to object and set its entry
this.gameObject.AddComponent<RemoteTransformations>().entry = entry;
// Qurey additional data to get the name
if (entry.getAdditionalData() != null &&
entry.getAdditionalData().TryGetValue("name", out value))
this.gameObject.name = value;
// Update is called once per frame