2
0
Эх сурвалжийг харах

Started updating Add component images.
Added note about using ComponentCategoryAttribute.

dfkeenan 6 жил өмнө
parent
commit
13e2094b57

+ 2 - 2
en/manual/game-studio/media/add-entities-to-a-scene-add-model-component.png

@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:9cd78ad87da233608abb9aea1ac991a683eb2519eba3154f22ca747d4d05caa1
-size 8693
+oid sha256:3dfb5ffb6fd0d6b87bf051d26e4ac30ea0e1cb13572d212cf502e177b9c31e2a
+size 9284

+ 2 - 2
en/manual/scripts/media/add-script-component.png

@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:d94b536756897bfe34dd8745acbd77af2a80537972fa416b8667a24aa09ee769
-size 22510
+oid sha256:bd28d6f54e3fef94b5e522e11385929d89b2d9cc256837ad1fa2d9cd6cb6a8d2
+size 9735

+ 14 - 0
en/manual/scripts/use-a-script.md

@@ -53,6 +53,20 @@ Game Studio adds an entity to your scene, with the script as a component on the
 
     Game Studio adds the script to the entity.
 
+>[!Note]
+>You can customize where scripts appear in the dropdown using the `ComponentCategoryAttribute`:
+
+>```cs
+>[ComponentCategory("My Startup Scripts")]
+>public class SampleStartupScript : StartupScript
+>{
+>    public override void Start()
+>    {
+>        // Do some stuff during initialization
+>    }
+>}
+>```
+
 ## Add a script from code
 
 The code below adds a script to an entity.