Skip to content

Commit

Permalink
* fdg warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lassonde committed Jun 1, 2018
1 parent 5e3fd03 commit 8f1ed99
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions Packages/com.unity.formats.fbx/Runtime/FbxPrefab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@

namespace UnityEngine.Formats.Fbx.Exporter
{
[System.Serializable]
public struct StringPair {
private string m_fbxObjectName;
public string FBXObjectName
{
get { return m_fbxObjectName; }
set { m_fbxObjectName = value; }
}
private string m_unityObjectName;
public string UnityObjectName
{
get { return m_unityObjectName; }
set { m_unityObjectName = value; }
}
}

public delegate void HandleUpdate(FbxPrefab updatedInstance, IEnumerable<GameObject> updatedObjects);

/// <summary>
/// This component is applied to a prefab. It keeps the prefab sync'd up
/// with an FBX file.
Expand All @@ -24,22 +42,6 @@ public class FbxPrefab : MonoBehaviour
[SerializeField] // [HideInInspector]
string m_fbxHistory;

[System.Serializable]
public struct StringPair {
private string m_fbxObjectName;
public string FBXObjectName
{
get { return m_fbxObjectName; }
set { m_fbxObjectName = value; }
}
private string m_unityObjectName;
public string UnityObjectName
{
get { return m_unityObjectName; }
set { m_unityObjectName = value; }
}
}

[SerializeField]
List<StringPair> m_nameMapping = new List<StringPair>();

Expand Down Expand Up @@ -111,7 +113,6 @@ public bool AutoUpdate {
/// - had a component that was created, destroyed, or updated.
/// There is no notification for entire objects that were destroyed.
/// </summary>
public delegate void HandleUpdate(FbxPrefab updatedInstance, IEnumerable<GameObject> updatedObjects);

/// <summary>
/// OnUpdate is raised once when an FbxPrefab gets updated, after all the changes
Expand Down

0 comments on commit 8f1ed99

Please sign in to comment.