Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

setObjectVisibility()

Purpose

Used to set the visibility of an object in 3D space

Syntax

setObjectVisibility( object, visibility )

Arguments

object Handle which stores the object

visibility Integer visibility setting (true/1) - visibile (false/0) - invisible

Example

c = controls(0)
oldc = c
ink(navy)

obj = placeObject( cube, { 0, 0, 0 }, { 2, 2, 2 } )
setObjectMaterial( obj, bisque, 0, 1 )
setEnvironment( 3, { .2, .2, .2, 1 } )

visible = true

loop
    clear()
    c = controls(0)

    if c.a and !oldc.a then
        visible = !visible
        setObjectVisibility( obj, visible )
    endif

    rotateObject( obj, { 0, 1, 1 }, 1 )
    drawObjects()

    oldc = c

    printAt(0, 0, "Press the A button to change object visibility setting")
    printAt(0, 2, "Object visibility: ", visible)

    update()
repeat

Associated Commands

drawObjects(), placeObject(), rotateObject(), setObjectMaterial()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.