2d滚动背景效果

问题描述

Unity的新增功能,试图重新创建在此资产包中找到的滚动背景效果,但无法在线找到任何内容https://pixel-frog.itch.io/pixel-adventure-1

解决方法

您可以只创建一个带有棋盘图案材料的四边形,然后以编程方式更改纹理偏移。

我实际上并没有测试此代码,但是下面是一些代码:

@bot.event
async def on_message(message):
    #some code if you want,if you want to pass then don't make on_message event
    await bot.process_commands(message)

当然,如果要使用多个检查器,则可以在材质属性中调整纹理的比例。