Egret Engine R - v6.0.0
    Preparing search index...

    Function superSetter

    • 调用父类的setter属性,代替其他语言的写法,如 super.alpha = 1;

      Parameters

      • currentClass: any

        当前 class 类名,非字符串

      • thisObj: any

        当前对象。永远都this

      • type: string

        需要调用的setter属性名称

      • ...values: any[]

        传给父类的值

      Returns any

      egret.superSetter(Sprite, this, "alpha", 1);

      zh_CN