(2 intermediate revisions by one other user not shown)
Line 3:
Line 3:
|Name=Glue
|Name=Glue
}}
}}
{{stub}}
The '''Glue''' component is generated by the [[Component:GlueTool|GlueTool]] when the user press and drags primary with the tool equipped. The mode on that tool determines what this component's <code>GlueMode</code> will be.
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|GlueMode|'''[[#Mode|Mode]]'''|TypeAdv0=true|
|GlueMode|'''[[#Mode|Glue.Mode]]'''|TypeAdv0=true| How to Glue the objects in the area or effect.
|Active|Bool|
|Active|Bool| Whether this component is ready to glue.
|DryTime|Float|
|DryTime|Float| How long it takes for this Glue to dry.
|Expire|Double|
|Expire|Double| When this component should delete itself in world time.
|GluingUser|User|
|GluingUser|User| The user that is gluing this glue.
|_forceDry|Bool|
|_forceDry|Bool| Whether to force dry this glue.
|isDrying|Bool|
|isDrying|Bool| Whether this Glue is currently drying or not.
|dryStartTime|Double|
|dryStartTime|Double| When the user triggerd this Glue to start drying in world time.
}}
}}
== Behavior ==
== Mode ==
{{Table EnumValues
== Examples ==
|ParentObjects|0| Parent objects will parent all objects within the glue bubble to a single parent.
|BakeMeshes|1| Bake meshes will bake all meshes within the glue bubble to a single asset.
|BakeSkinnedMeshes|2| Bake skinned meshes will bake multiple skinned meshes in a single asset.
The Glue component is generated by the GlueTool when the user press and drags primary with the tool equipped. The mode on that tool determines what this component's GlueMode will be.