Use PostFXPlugin (such as OutlinePipeline) with ContainerLite #311
-
Hi, I wanted to ask if it is possible to use a post fx pipeline with a containerlite gameobject? I cannot get it to work... postFxPlugin.add(gameObject, {
thickness: 3,
outlineColor: 0xff8a50
}); I get the following error:
However this works fine if I use a Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
containerLite does not have render logic. |
Beta Was this translation helpful? Give feedback.
containerLite does not have render logic.
You can put containerLite and its children into container, or layer, then apply shader effect on container, or layer.
If containerLite does not have mask children, it is fine to put into container.
Or,
var layer = container.getLayer()
will return a private layer for this containerLite.