using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteAlways]
public class SettingLightResolution : MonoBehaviour
{
public Light light;
public int resolution = 256;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if (light==null)
{
return;
}
light.shadowCustomResolution = resolution;
#if UNITY_EDITOR
UnityEditor.EditorUtility.SetDirty(light);
#endif
}
}
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium;
public static class Crawling
{
public static void Run()
{
driver = new ChromeDriver();
driver.Url = "https://www.google.com";
driver.FindElement(By.Name("q")).SendKeys("webdriver" + System.Windows.Forms.Keys.Return);
Console.WriteLine(driver.Title);
driver.Quit();
}
}
namespace Crawler
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
Crawling crawling = new Crawling();
private void button1_Click(object sender, EventArgs e)
{
crawling.Run();
}
}
}
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium;
namespace Crawler
{
public class Crawling
{
ChromeDriver driver;
public void Run()
{
driver = new ChromeDriver();
driver.Url = "https://www.google.com";
driver.Quit();
}
}
}