55 lines
862 B
C#
Executable File
55 lines
862 B
C#
Executable File
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class UnityDevSetLocalPosition : MonoBehaviour
|
|
{
|
|
|
|
#region Inspector Properties
|
|
|
|
[Header("Config Values")]
|
|
[SerializeField]
|
|
private Vector3 unityDevLocalPosition;
|
|
|
|
#endregion
|
|
|
|
#region Public Properties
|
|
|
|
#endregion
|
|
|
|
#region Private Properties
|
|
|
|
#endregion
|
|
|
|
#region Framework Functions
|
|
|
|
void Awake()
|
|
{
|
|
this.setLocalPosition();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Events
|
|
|
|
#endregion
|
|
|
|
#region Public Functions
|
|
|
|
#endregion
|
|
|
|
#region Private Functions
|
|
|
|
private void setLocalPosition()
|
|
{
|
|
if (Application.isEditor)
|
|
{
|
|
this.transform.localPosition = this.unityDevLocalPosition;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|