mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-21 06:05:45 +08:00
Resizeable comments
This commit is contained in:
@@ -184,7 +184,11 @@ export default class LinearColorEntity extends IEntity {
|
||||
}
|
||||
|
||||
toNumber() {
|
||||
return (this.R.value << 24) + (this.G.value << 16) + (this.B.value << 8) + this.A.value
|
||||
return (
|
||||
Math.round(this.R.value * 0xff) << 24)
|
||||
+ (Math.round(this.G.value * 0xff) << 16)
|
||||
+ (Math.round(this.B.value * 0xff) << 8)
|
||||
+ Math.round(this.A.value * 0xff)
|
||||
}
|
||||
|
||||
/** @param {Number} number */
|
||||
|
||||
Reference in New Issue
Block a user