Skip to main content

Editor.Components.FalloffType

Enum

Falloff curve type options for light and effect components.

Index

Enumeration Members

Example

const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const scene = model.project.scene;

// Create a LightSource and set the falloff type
const obj = scene.createSceneObject('PointLight');
const light = obj.addComponent('LightSource');
light.lightType = Editor.Components.LightType.Point;
light.falloffType = Editor.Components.FalloffType.Quadratic;
light.falloffRange = 100;
console.log(`falloffType: ${light.falloffType}`);

Enumeration Members

None

None: number

No falloff applied.


Quadratic

Quadratic: number

Quadratic falloff curve.