Skip to content

Commit 149e45e

Browse files
committed
fix FbxPrefab warnings
- struct members should be properties
1 parent 9505d8c commit 149e45e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Packages/com.unity.formats.fbx/Runtime/FbxPrefab.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,20 @@ public class FbxPrefab : MonoBehaviour
2525
string m_fbxHistory;
2626

2727
[System.Serializable]
28-
public struct StringPair { public string FBXObjectName; public string UnityObjectName; }
28+
public struct StringPair {
29+
private string m_fbxObjectName;
30+
public string FBXObjectName
31+
{
32+
get { return m_fbxObjectName; }
33+
set { m_fbxObjectName = value; }
34+
}
35+
private string m_unityObjectName;
36+
public string UnityObjectName
37+
{
38+
get { return m_unityObjectName; }
39+
set { m_unityObjectName = value; }
40+
}
41+
}
2942

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

0 commit comments

Comments
 (0)