Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
create(scene: Scene): BabylonAdvancedDynamicTexture {
this.advancedDynamicTexture =
this.props.createForParentMesh === true
? BabylonAdvancedDynamicTexture.CreateForMesh(
this.props.container.babylonObject,
this.props.width,
this.props.height,
this.props.supportPointerMove,
this.props.onlyAlphaTesting
)
: new BabylonAdvancedDynamicTexture(
this.props.name,
this.props.width,
this.props.height,
scene,
this.props.generateMipMaps,
this.props.samplingMode
)
return this.advancedDynamicTexture
}