81 lines
2.6 KiB
XML
81 lines
2.6 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="VoxelInstanceLibraryItem" inherits="Resource" version="3.2">
|
|
<brief_description>
|
|
Settings for a model that can be used by [VoxelInstancer]
|
|
</brief_description>
|
|
<description>
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<methods>
|
|
<method name="get_collision_shapes" qualifiers="const">
|
|
<return type="Array">
|
|
</return>
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="get_mesh" qualifiers="const">
|
|
<return type="Mesh">
|
|
</return>
|
|
<argument index="0" name="mesh_lod_index" type="int">
|
|
</argument>
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="set_collision_shapes">
|
|
<return type="void">
|
|
</return>
|
|
<argument index="0" name="shape_infos" type="Array">
|
|
</argument>
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="set_mesh">
|
|
<return type="void">
|
|
</return>
|
|
<argument index="0" name="mesh" type="Mesh">
|
|
</argument>
|
|
<argument index="1" name="mesh_lod_index" type="int">
|
|
</argument>
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="setup_from_template">
|
|
<return type="void">
|
|
</return>
|
|
<argument index="0" name="node" type="Node">
|
|
</argument>
|
|
<description>
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
<members>
|
|
<member name="collision_layer" type="int" setter="set_collision_layer" getter="get_collision_layer" default="1">
|
|
</member>
|
|
<member name="collision_mask" type="int" setter="set_collision_mask" getter="get_collision_mask" default="1">
|
|
</member>
|
|
<member name="generator" type="VoxelInstanceGenerator" setter="set_generator" getter="get_generator">
|
|
</member>
|
|
<member name="lod_index" type="int" setter="set_lod_index" getter="get_lod_index" default="0">
|
|
</member>
|
|
<member name="material_override" type="Material" setter="set_material_override" getter="get_material_override">
|
|
</member>
|
|
<member name="mesh" type="Mesh" setter="_set_mesh_lod0" getter="_get_mesh_lod0">
|
|
</member>
|
|
<member name="mesh_lod1" type="Mesh" setter="_set_mesh_lod1" getter="_get_mesh_lod1">
|
|
</member>
|
|
<member name="mesh_lod2" type="Mesh" setter="_set_mesh_lod2" getter="_get_mesh_lod2">
|
|
</member>
|
|
<member name="mesh_lod3" type="Mesh" setter="_set_mesh_lod3" getter="_get_mesh_lod3">
|
|
</member>
|
|
<member name="name" type="String" setter="set_item_name" getter="get_item_name" default="""">
|
|
</member>
|
|
<member name="persistent" type="bool" setter="set_persistent" getter="is_persistent" default="false">
|
|
</member>
|
|
</members>
|
|
<constants>
|
|
<constant name="MAX_MESH_LODS" value="4">
|
|
</constant>
|
|
</constants>
|
|
</class>
|