import { _decorator , Component , Sprite , Material } from 'cc' ; const { ccclass , property , executeInEditMode } = _decorator ; import { Utils } from "../../utils/utils" ; @ ccclass ( 'Blur' ) @ executeInEditMode export default class Blur extends Component { img : Sprite | null = null ; material : Material | null = null ; onLoad ( ) { this . img = this . getComponent ( Sprite ) ; console . log ( this . img ?. sharedMaterial ) ; } } /**
 * 注意：已把原脚本注释，由于脚本变动过大，转换的时候可能有遗落，需要自行手动转换
 */