Пример #1
0
        /// <summary> Loads a transform from memory as position, rotation, and scale. </summary>
        /// <param name="data">The transform to load data into.</param>
        /// <param name="key">The key to load from.</param>
        public static void LoadTransformWeb(Transform data, string key)
        {
            ES_TransformData tData = LoadWeb <ES_TransformData>(key);

            transformLoads.Add(new ES_TransformLoad {
                target = data, data = tData
            });
        }
Пример #2
0
        /// <summary> Saves a transform into memory as position, rotation, and scale. </summary>
        /// <param name="data">The transform to save.</param>
        /// <param name="key">The key to save to.</param>
        public static void SaveTransformWeb(Transform data, string key)
        {
            ES_TransformData tData = new ES_TransformData {
                localPosition = data.localPosition, localRotation = data.localRotation, localScale = data.localScale
            };

            SaveWeb(tData, key);
        }
Пример #3
0
        /// <summary> Loads a transform from memory as position, rotation, and scale. </summary>
        /// <param name="data">The transform to load data into.</param>
        /// <param name="path">The path to load from.</param>
        public static void LoadTransform(Transform data, string path)
        {
            ES_TransformData tData = Load <ES_TransformData>(path);

            transformLoads.Add(new ES_TransformLoad {
                target = data, data = tData
            });
        }
Пример #4
0
        /// <summary> Saves a transform into memory as position, rotation, and scale. </summary>
        /// <param name="data">The transform to save.</param>
        /// <param name="path">The path to save to.</param>
        public static void SaveTransform(Transform data, string path)
        {
            ES_TransformData tData = new ES_TransformData {
                localPosition = data.localPosition, localRotation = data.localRotation, localScale = data.localScale
            };

            Save(tData, path);
        }