KerbalKlinic

KerbalKlinic

329 Downloads

[Bug ๐Ÿž]: Compiler doesn't like LoadImage (KSP 1.8+)

zer0Kerbal opened this issue ยท 5 comments

commented

texture.LoadImage(File.ReadAllBytes(RelPath + "/files/button.png"));

Error CS1061

'Texture2D' does not contain a definition for 'LoadImage' and no accessible extension method 'LoadImage' accepting a first argument of type 'Texture2D' could be found (are you missing a using directive or an assembly reference?) KerbalKlinic Q:\KSPDev\Addon\Repo\KerbalKlinic\source\KerbalKlinic\KerbalKlinic.cs

commented

Thank you. Kindly read contributiing.md, code_of_conduct.md and styleguide.md. These are boilerplate.

commented

ImageConversion.LoadImage then Apply

commented

Texture2D.LoadImage - moved to ImageConversion.LoadImage - add UnityEngine.ImageConversionModule.DLL reference
https://forum.kerbalspaceprogram.com/index.php?/topic/188933-180-modders-notes/

commented

image