public static Stamper GetOrCreateSyncedStamper(string stamperName) { Stamper stamper = null; //No stamper passed in, does a session Stamper exist? if (stamper == null) { GameObject stamperObj = GameObject.Find(stamperName); if (stamperObj == null) { GameObject wmeTempTools = GaiaUtils.GetOrCreateWorldMapTempTools(); stamperObj = new GameObject(stamperName); stamperObj.transform.parent = wmeTempTools.transform; } if (stamperObj.GetComponent <Stamper>() == null) { stamper = stamperObj.AddComponent <Stamper>(); #if GAIA_PRO_PRESENT if (GaiaUtils.HasDynamicLoadedTerrains()) { //We got placeholders, activate terrain loading stamper.m_loadTerrainMode = LoadMode.EditorSelected; } #endif } stamper = stamperObj.GetComponent <Stamper>(); } return(stamper); }