Editor Scripting API
    Preparing search index...

    A native asset that provides information for segmentation texture. Import with Editor.Model.AssetManager#createNativeAsset.

    const model = pluginSystem.findInterface(Editor.Model.IModel);
    const assetManager = model.project.assetManager;

    const destination new Editor.Path('');
    const segmentationType = Editor.Assets.SegmentationType.PortraitHair;

    const result = assetManager.createNativeAsset('SegmentationTexture', 'Segmentation Texture', destination);
    result.segmentationType = segmentationType;

    Hierarchy (View Summary)

    Index

    Properties

    cacheFile: Path
    feathering: number
    id: Uuid

    The unique id of the entity.

    invertMask: boolean
    meta: Meta
    name: string

    The name of the asset.

    refineEdge: boolean
    segmentationType: SegmentationType
    type: string

    The entity's type.

    Methods

    • Parameters

      • type: string

      Returns boolean