Skip to content
Snippets Groups Projects
Commit e1b82702 authored by Sylvain Renault's avatar Sylvain Renault
Browse files

Update the validation scene.

parent 78a74615
No related branches found
No related tags found
2 merge requests!7Statue model size was updated.,!6Update the validation scene.
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
}
}
}
fileFormatVersion: 2
guid: 53275cee00d69114f926dc2b69bb4e53
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment