We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I don't recommend applying it to everyone, otherwise it will slow down xd
struct Light : Behaviour { int m_BakedIndex; static std::vector<Light*> FindAll() { UnityResolve::Class* lightClass = UnityResolve::Get("UnityEngine.CoreModule.dll")->Get("Light"); if (lightClass) { return lightClass->FindObjectsByType<Light*>(); } return {}; } void SetIntensity(float value) { UnityResolve::Class* lightClass = UnityResolve::Get("UnityEngine.CoreModule.dll")->Get("Light"); if (lightClass) { UnityResolve::Method* setIntensityMethod = lightClass->Get<UnityResolve::Method>("set_intensity", { "System.Single" }); if (setIntensityMethod) { setIntensityMethod->Invoke<void>(this, value); } } else { std::cerr << "Light class not found" << std::endl; } } };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I don't recommend applying it to everyone, otherwise it will slow down xd
The text was updated successfully, but these errors were encountered: