"The name 'HierarchyUtil' does not exist in the current context | Line: 96, Pos: 30"please fix as i love this plugin
Not compiling
2nd'd... Does anyone know the correct format to replace...
Transform root = HierarchyUtil.GetRoot("Monument").transform;
I've tried a few variations of the below, but no luck - don't really know what I'm doing, but it has worked with other plugins ;)
Transform root = gameObject.transform.root("Monument").transform;
Tx
Hey, think I fixed the code and added a new cmd.... just have to check if it's OK to post / share it...etc. Cheers
EddieCatflapHey, think I fixed the code and added a new cmd.... just have to check if it's OK to post / share it...etc. Cheers
I've seen other plugin posts (regarding to fixes) posted before until the developer patched it themselves. I think the extra command you implimented would be an issue but I'm that there would be people happy for at least the fixed line if that was just the issue you resolved.
Transform root = HierarchyUtil.GetRoot("Monument").transform;
for (int i = 0; i < root.childCount; i++)
{
Transform child = root.GetChild(i);
foreach (KeyValuePair<string, ConfigData.Monuments.MonumentSettings> kvp in monumentLookup)
{
if (child.name.Contains(kvp.Key))
{
if (kvp.Value.Enabled)
ServerMgr.Instance.StartCoroutine(SpawnAnimals(child.position, kvp.Value.Counts));
break;
}
}
}
this complete part of the code needs to be changed to
foreach (var monument in TerrainMeta.Path.Monuments)
{
string monumentName = monument.name.ToLower();
foreach (KeyValuePair<string, ConfigData.Monuments.MonumentSettings> kvp in monumentLookup)
{
if (monumentName.Contains(kvp.Key.ToLower()))
{
if (kvp.Value.Enabled)
{
ServerMgr.Instance.StartCoroutine(SpawnAnimals(monument.transform.position, kvp.Value.Counts));
}
break;
}
}
} vaultcatcher
Transform root = HierarchyUtil.GetRoot("Monument").transform; for (int i = 0; i < root.childCount; i++) { Transform child = root.GetChild(i); foreach (KeyValuePair<string, ConfigData.Monuments.MonumentSettings> kvp in monumentLookup) { if (child.name.Contains(kvp.Key)) { if (kvp.Value.Enabled) ServerMgr.Instance.StartCoroutine(SpawnAnimals(child.position, kvp.Value.Counts)); break; } } } this complete part of the code needs to be changed to foreach (var monument in TerrainMeta.Path.Monuments) { string monumentName = monument.name.ToLower(); foreach (KeyValuePair<string, ConfigData.Monuments.MonumentSettings> kvp in monumentLookup) { if (monumentName.Contains(kvp.Key.ToLower())) { if (kvp.Value.Enabled) { ServerMgr.Instance.StartCoroutine(SpawnAnimals(monument.transform.position, kvp.Value.Counts)); } break; } } }
not work put all complet to test