Runs the MLComponent automatically when the object or component it's on is enabled.
If disabled, the Component will stop enacting its behavior.
Controls the inference mode that MLComponent will run in. For example, GPU, CPU, etc.
Binary ML model supplied by the user.
Function that gets called when model loading is finished.
Function that gets called when the model stops running.
Render order of the MLComponent.
Readonly
sceneThe scene object this component is on.
Readonly
stateReturns the current status of the neural network model.
Readonly
uniqueBuilds the MLComponent model when all placeholders are determined. Config is an array of Input and Output placeholders.
Returns the InputPlaceholder with the matching name.
Returns an array of InputPlaceholders of the MLComponent's model with default settings. Returns empty array if the model asset is not set.
Returns the OutputPlaceholder with the matching name.
Returns an array of OutputPlaceholders of MLComponent's model with default settings. Returns empty array if the model is not set.
Returns the SceneObject the component is attached to.
Returns the end time of the scheduled MLComponent run.
Returns the start time of the scheduled MLComponent run.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Schedules the MLComponent to run at the start timing and terminate at the end timing. The scheduled running will recur if recurring
is true.
Transforms inputs (Textures or Float32Array) into outputs (Textures or Float32Array) using a neural network. The neural network is represented by an MLAsset, which is set as the
model
property. For more information, see the MLComponent Overview.Example