Firstborn/Assets/Scripts/RandomizeEverything.cs
Schaken-Mods f35c8a6d6e 6/21/23 update
Upgraded the framework which includes the Distant cell rendering. I have been merging meshes to cut down the Draw calls, so far gaining on average 20FPS everywhere. New bugs are the magic fails (Again) and the environment presets fail to call when outside. Currently trying to build new lightmaps for the combined meshes.
2023-06-21 11:09:52 -05:00

33 lines
704 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RandomizeEverything : MonoBehaviour
{
[SerializeField, Range(0, 360)] public float Rotate;
[SerializeField, Range(0.5f, 4.0f)] public float Scale;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
[ContextMenu("Randomize")]
public void Randomize() {
for (int i = 0; i < gameObject.transform.childCount; i++)
{
Transform child = gameObject.transform.GetChild(i);
float TempRotate = Random.Range(0, Rotate);
}
}
}