@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
53 lines (52 loc) • 1.4 kB
TypeScript
import { NodeParticleBlock } from "../nodeParticleBlock.js";
import type { NodeParticleConnectionPoint } from "../nodeParticleBlockConnectionPoint.js";
/**
* Locks supported by the random block
*/
export declare enum ParticleRandomBlockLocks {
/** None */
None = 0,
/** PerParticle */
PerParticle = 1,
/** PerSystem */
PerSystem = 2
}
/**
* Block used to get a random number
*/
export declare class ParticleRandomBlock extends NodeParticleBlock {
private _currentLockId;
/**
* Gets or sets a value indicating if that block will lock its value for a specific event
*/
lockMode: ParticleRandomBlockLocks;
/**
* Create a new ParticleRandomBlock
* @param name defines the block name
*/
constructor(name: string);
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
/**
* Gets the min input component
*/
get min(): NodeParticleConnectionPoint;
/**
* Gets the max input component
*/
get max(): NodeParticleConnectionPoint;
/**
* Gets the geometry output component
*/
get output(): NodeParticleConnectionPoint;
_build(): void;
/**
* Serializes this block in a JSON representation
* @returns the serialized block object
*/
serialize(): any;
_deserialize(serializationObject: any): void;
}