From 7ef16ca136f0e5fc82b5808d53cffbd13653c6f6 Mon Sep 17 00:00:00 2001 From: James Westman Date: Fri, 29 Nov 2019 18:21:34 -0600 Subject: Docs: GridMap and MeshLibrary The only methods left to document are resource_changed, set_clip, and the methods dealing with baked meshes. --- doc/classes/MeshLibrary.xml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/MeshLibrary.xml b/doc/classes/MeshLibrary.xml index 44dc4f334f..49278be44e 100644 --- a/doc/classes/MeshLibrary.xml +++ b/doc/classes/MeshLibrary.xml @@ -4,7 +4,7 @@ Library of meshes. - A library of meshes. Contains a list of [Mesh] resources, each with a name and ID. This resource is used in [GridMap]. + A library of meshes. Contains a list of [Mesh] resources, each with a name and ID. Each item can also include collision and navigation shapes. This resource is used in [GridMap]. @@ -22,7 +22,8 @@ - Create a new item in the library, supplied as an ID. + Creates a new item in the library with the given ID. + You can get an unused ID from [method get_last_unused_item_id]. @@ -31,13 +32,14 @@ + Returns the first item with the given name. - Returns the list of items. + Returns the list of item IDs in use. @@ -46,7 +48,7 @@ - Returns the mesh of the item. + Returns the item's mesh. @@ -55,7 +57,7 @@ - Returns the name of the item. + Returns the item's name. @@ -64,6 +66,7 @@ + Returns the item's navigation mesh. @@ -72,6 +75,7 @@ + Returns the transform applied to the item's navigation mesh. @@ -90,6 +94,8 @@ + Returns an item's collision shapes. + The array consists of each [Shape] followed by its [Transform]. @@ -128,6 +134,7 @@ Sets the item's name. + This name is shown in the editor. It can also be used to look up the item later using [method find_item_by_name]. @@ -138,6 +145,7 @@ + Sets the item's navigation mesh. @@ -148,6 +156,7 @@ + Sets the transform to apply to the item's navigation mesh. @@ -158,6 +167,7 @@ + Sets a texture to use as the item's preview icon in the editor. @@ -168,6 +178,8 @@ + Sets an item's collision shapes. + The array should consist of [Shape] objects, each followed by a [Transform] that will be applied to it. For shapes that should not have a transform, use [constant Transform.IDENTITY]. -- cgit v1.2.3