1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Globalization;
- using UnityEngine;
- [Serializable]
- public class SpatialGameObjectData
- {
- [SerializeField]
- private string prefabName;
- [SerializeField]
- private Vector3 localPosition;
- [SerializeField]
- private Quaternion localRotation;
- [SerializeField]
- private Vector3 localScale;
- public SpatialGameObjectData()
- {
-
- }
- public void SetPrefabName(string prefabName)
- {
- this.prefabName = prefabName;
- }
- public string GetPrefabName()
- {
- return this.prefabName;
- }
- public void SetTransformData(Vector3 localPosition, Quaternion localRotation, Vector3 localScale)
- {
- this.localPosition = localPosition;
- this.localRotation = localRotation;
- this.localScale = localScale;
- }
- public void GetTransformData(ref Vector3 localPosition, ref Quaternion localRotation, ref Vector3 localScale)
- {
- localPosition = this.localPosition;
- localRotation = this.localRotation;
- localScale = this.localScale;
- }
- }
|