Commit e1b82702 authored by Sylvain Renault's avatar Sylvain Renault
Browse files

Update the validation scene.

parent 78a74615
Loading
Loading
Loading
Loading
+3070 −2573

File changed.

Preview size limit exceeded, changes collapsed.

+29 −0
Original line number Diff line number Diff line
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace ETSI.ARF.WorldStorage.UI
{
    [ExecuteAlways]
    public class AttachToWorldAnchor : MonoBehaviour
    {
        public GameObject worldAnchor;
        public bool autoUpdate = true;

        private void Update()
        {
            if (autoUpdate && worldAnchor != null)
            {
                transform.position = worldAnchor.transform.position;
                transform.rotation = worldAnchor.transform.rotation;
            }
        }

        void OnDrawGizmos()
        {
#if UNITY_EDITOR
            // do something...
#endif
        }
    }
}
+11 −0
Original line number Diff line number Diff line
fileFormatVersion: 2
guid: 53275cee00d69114f926dc2b69bb4e53
MonoImporter:
  externalObjects: {}
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData: 
  assetBundleName: 
  assetBundleVariant: 
+211 −293

File changed.

Preview size limit exceeded, changes collapsed.