png for slider?

hi there,

can someone point me to how i can use a custom image (e.g. a transparent png file) for the slider button?

thanks in advance.
cheers,
ello

Try out some shaders. It’s the easiest way to achieve what you’re looking for, i think.

Rallye? I thought shaders are for effects not for such things.
I’ll check it.

No shaders. GuiSkin. Here: Unity - Manual: GUI Skin (IMGUI System)

Thank you. That’s what I was looking for.

No problem.

hey, there… still one question. i created a style for my gameobject which uses two sliders.
now after i added the style to the slider like:

var sliderStyle : GUIStyle;
var thumbStyle : GUIStyle;

function OnGUI() {
myValue = GUI.HorizontalSlider (Rect (10,Screen.height-40, Screen.width-20, 30), camPan, -45.0, 45.0,sliderStyle,thumbStyle); 
}

the slider is not showing up anymore.

what could cause this??

thanks in advance,
ello

Maybe its because of the image you are using for the GUISkin

hm, are there any restrictions? or minimal requirements?

ah. ok, got it :slight_smile:

thanks again…

no problem :3