void PopulateProperty(string propertyPath, ref SerializedProperty prop) { if (SerializedObjectData != null && prop == null) { prop = SerializedObjectData.FindProperty(propertyPath); } }
void UpdateSerializedProperty() { if (m_LoaderList != null && m_LoaderList.isArray) { m_LoaderList.ClearArray(); int index = 0; foreach (XRLoaderInfo info in m_AssignedLoaderInfos) { m_LoaderList.InsertArrayElementAtIndex(index); var prop = m_LoaderList.GetArrayElementAtIndex(index); prop.objectReferenceValue = info.instance; index++; } } SerializedObjectData.ApplyModifiedProperties(); }