Where do I go in the editor to have the mod load a custom script before game start? I'm still new to Unity and really have no idea how to do this.Daniel87 wrote: ↑Tue Apr 27, 2021 10:09 am
All you would need to get the oceans back is:
- Creating a mod
- Having the mod load your custom ITerrainTexturing script before game startCode: Select all
static MyTerrainTexturing myTexturing; myTexturing = new MyTerrainTexturing(); DaggerfallUnity.Instance.TerrainTexturing = myTexturing;
How do I add a script to the mod? In fact how do I add anything to the mod? It only says to add selected asset, I see no "add to mod" option or a way to add an asset to the list.Daniel87 wrote: ↑Tue Apr 27, 2021 10:09 am
- Adding this rule to the texturing algorithm of your custom ITerrainTexturing (in this case called "MyTerrainTexturing.cs"):Code: Select all
if (height <= 100.1f) { tileData[index] = water; return; }
Also whereabouts in this code below am I supposed to put your lines of code?
Code: Select all
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}