소스 검색

Mention exception to setting values before adding to tree

tetrapod00 7 달 전
부모
커밋
51a9199a92
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      tutorials/best_practices/logic_preferences.rst

+ 4 - 2
tutorials/best_practices/logic_preferences.rst

@@ -19,8 +19,10 @@ corresponding values, and that code can be slow! For most cases, this code
 has no impact on your game's performance, but in heavy use cases such as
 has no impact on your game's performance, but in heavy use cases such as
 procedural generation, it can bring your game to a crawl.
 procedural generation, it can bring your game to a crawl.
 
 
-For these reasons, it is always a best practice to set the initial values
-of a node before adding it to the scene tree.
+For these reasons, it is usually best practice to set the initial values
+of a node before adding it to the scene tree. There are some exceptions where
+values *can't* be set before being added to the scene tree, like setting global
+position.
 
 
 Loading vs. preloading
 Loading vs. preloading
 ----------------------
 ----------------------