Skip to content

Commit

Permalink
core/math/utils.ts add method: setRandGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
zhifenghu committed Aug 1, 2023
1 parent 47876f4 commit 0b1ceca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cocos/particle/animator/texture-animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/

import { ccclass, tooltip, displayOrder, type, formerlySerializedAs, serializable, range } from 'cc.decorator';
import { lerp, pseudoRandom, repeat, Enum, random } from '../../core';
import { lerp, pseudoRandom, repeat, Enum, random, error } from '../../core';
import { Particle, ParticleModuleBase, PARTICLE_MODULE_NAME } from '../particle';
import CurveRange from './curve-range';
import { ModuleRandSeed } from '../enum';
Expand Down Expand Up @@ -117,7 +117,7 @@ export default class TextureAnimationModule extends ParticleModuleBase {

set mode (val) {
if (val !== Mode.Grid) {
console.error('particle texture animation\'s sprites is not supported!');
error('particle texture animation\'s sprites is not supported!');
}
}

Expand Down Expand Up @@ -207,7 +207,7 @@ export default class TextureAnimationModule extends ParticleModuleBase {
}

set flipU (val) {
console.error('particle texture animation\'s flipU is not supported!');
error('particle texture animation\'s flipU is not supported!');
}

@serializable
Expand All @@ -218,7 +218,7 @@ export default class TextureAnimationModule extends ParticleModuleBase {
}

set flipV (val) {
console.error('particle texture animation\'s flipV is not supported!');
error('particle texture animation\'s flipV is not supported!');
}

@serializable
Expand All @@ -229,7 +229,7 @@ export default class TextureAnimationModule extends ParticleModuleBase {
}

set uvChannelMask (val) {
console.error('particle texture animation\'s uvChannelMask is not supported!');
error('particle texture animation\'s uvChannelMask is not supported!');
}

/**
Expand Down

0 comments on commit 0b1ceca

Please sign in to comment.