From 762485c0bd47ad59d56d24247fd3d1706aac571f Mon Sep 17 00:00:00 2001 From: Rex Date: Wed, 23 Aug 2023 17:37:52 +0800 Subject: [PATCH] Update description --- docs/docs/containerlite.md | 20 ++++++- docs/site/containerlite/index.html | 56 +++++++++++++++++--- docs/site/search/search_index.json | 2 +- docs/site/sitemap.xml.gz | Bin 2697 -> 2697 bytes examples/container-lite/add-to-container.js | 5 ++ 5 files changed, 74 insertions(+), 9 deletions(-) diff --git a/docs/docs/containerlite.md b/docs/docs/containerlite.md index c04220eaae..6c389a996b 100644 --- a/docs/docs/containerlite.md +++ b/docs/docs/containerlite.md @@ -568,7 +568,7 @@ scene.tweens.add(tweenConfig); container.sendChildToBack(gameObject); ``` -### Layer +### Render layer A containerLite can have a [layer](layer.md). Current children and new children will draw on this layer, instead of display list of scene. @@ -607,7 +607,7 @@ Current children and new children will draw on this layer, instead of display li ### Shader effects -Apply post-fx pipeline on [layer of containerLite](containerlite.md#layer). +Apply post-fx pipeline on [layer of containerLite](containerlite.md#render-layer). ### Snapshot @@ -692,6 +692,22 @@ This method also will reset all local state of children. ``` - `layer` : [Layer](layer.md) game object. +#### Remove from container + +- Remove from [built-in container](container.md) + ```javascript + containerLite.removeFromContainer(p3Container); + ``` + or + ```javascript + p3Container.remove(containerLite); + ``` + - `p3Container` : [Container](container.md) game object. +- Remove from [Layer](layer.md) + ```javascript + container.removeFromLayer(layer); + ``` + - `layer` : [Layer](layer.md) game object. ### Other properties diff --git a/docs/site/containerlite/index.html b/docs/site/containerlite/index.html index d0e5031af9..73a9a76965 100644 --- a/docs/site/containerlite/index.html +++ b/docs/site/containerlite/index.html @@ -2758,8 +2758,8 @@
  • - - Layer + + Render layer
  • @@ -2811,6 +2811,19 @@ Add to container + +
  • @@ -9950,8 +9963,8 @@
  • - - Layer + + Render layer
  • @@ -10003,6 +10016,19 @@ Add to container + +
  • @@ -10518,7 +10544,7 @@

    Depth&
    container.sendChildToBack(gameObject);
     

  • -

    Layer

    +

    Render layer

    A containerLite can have a layer. Current children and new children will draw on this layer, instead of display list of scene.

    Shader effects

    -

    Apply post-fx pipeline on layer of containerLite.

    +

    Apply post-fx pipeline on layer of containerLite.

    Snapshot