How to make custom sprite materials render after GUI materials in newest render script?(SOLVED)

Now I want to use custom cursor in game,so I create a cursor game object in collection, but the sprite will be obscured by the gui, and my think is copy sprite material to cursor and modify tags and finally add some render function I guess but I after add, it still doesn’t work.

and then i noticed that previous render script is differnet from then current one ,so what should i do?
!
anything help or tips I will be grateful!thanks!

:innocent: :innocent: wow!it works!I did not make a copy of the default render script to my folder….orz
just modify defaule render script in builtins directly it a mistake method

    
-- ======= render gui=======---

-- render the custom cursor
    --
    render.enable_state(graphics.STATE_BLEND)
    render.draw(predicates.cursor, draw_options_world)
    render.disable_state(graphics.STATE_DEPTH_TEST)
2 Likes