We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # 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: