bool ValidateVFXModel(VFXModel model, VFXModel expectedParent) { if (model == null) { LogError("Model error : null. in parent:" + GetVFXModelDesc(expectedParent)); return(false); } if (model.GetParent() != expectedParent) { LogError("Model error : wrong parent. expected:" + GetVFXModelDesc(expectedParent) + " actual:" + GetVFXModelDesc(model.GetParent())); } if (!(model is VFXSlot) && model.GetGraph() != m_Graph) { LogError("Model error : " + GetVFXModelDesc(model) + " wrong graph. expected:" + GetVFXModelDesc(m_Graph) + " actual:" + GetVFXModelDesc(model.GetParent())); } return(true); }