예제 #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="field">The unity object field to construct.</param>
 public UnityObjectField(UnityObjectField field)
 {
     name       = field.name;
     value      = field.value;
     objectType = field.objectType;
     sceneID    = field.sceneID;
     sceneName  = field.sceneName;
 }
예제 #2
0
        /// <summary>
        /// Clone the unity object field, remove references.
        /// </summary>
        /// <param name="field">The unity object field to clone.</param>
        /// <returns>The cloned unity object field.</returns>
        public UnityObjectField Clone(UnityObjectField field)
        {
            UnityObjectField temp = new UnityObjectField();

            temp.name       = field.name;
            temp.value      = field.value;
            temp.objectType = field.objectType;
            temp.sceneID    = field.sceneID;
            temp.sceneName  = field.sceneName;
            return(temp);
        }