Tile - YPreviewObject - Create Preview Object – Ylands
Jump to navigation
Jump to search
(Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Create Preview Object(Entity type, Position, Rota...") |
Lou Montana (talk | contribs) m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}") |
||
Line 71: | Line 71: | ||
---- | ---- | ||
{{Navbox/Ylands}} | {{Navbox/Ylands}} | ||
{{DEFAULTSORT:{{#sub:{{PAGENAME}}| | {{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}} | ||
[[Category: Instructions]] | [[Category: Instructions]] |
Latest revision as of 15:27, 24 November 2023
Create Preview Object(Entity type, Position, Rotation)
static create(entityType: YEntityType, position: YVector3, rotation: YVector3): YPreviewObject;
Parameters
entityType
position
rotation
Returns
YPreviewObject
Availability
Description
Creates a preview object from an entity type prototype, on target position with chosen rotation.
Notes
- Preview objects are temporary, more optimized versions of entities or logic objects.
- On Tool confirm, all preview objects created via this tile get replaced by entities with identical properties
- If not spawned via the script or automatically on Tool confirm, these objects are deleted on Tool script end.
Create Preview Object(Logic type, Visual, Position, Rotation)
static create(logicType: YGameLogicType, visual: YPreviewObjectVisual, position: YVector3, rotation: YVector3): YPreviewObject;
Parameters
logicType
visual
position
rotation
Returns
YPreviewObject
Availability
Description
Creates a preview object from an game logic type prototype, on target position with chosen rotation.
Notes
- Preview objects are temporary, more optimized versions of entities or logic objects.
- On Tool confirm, all preview objects created via this tile get replaced by game logic objects with identical properties
- If not spawned via the script or automatically on Tool confirm, these objects are deleted on Tool script end.