This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var TouchJoystick = pc.createScript('touchJoystick'); | |
TouchJoystick.attributes.add('identifier', { | |
type: 'string', | |
default: 'joystick0', | |
title: 'Idenitifier', | |
description: 'A unique name for the joystick to refer to it by in the API. Joysticks are also buttons so this will also be the name of button in the API. It will give a warning in browser tools if the name is not unique.' | |
}); | |
TouchJoystick.attributes.add('type', { | |
type: 'string', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var JoystickPlayerMovement = pc.createScript('joystickPlayerMovement'); | |
JoystickPlayerMovement.attributes.add('joystickId' , { type: 'string', | |
default: 'movement', | |
title: 'Joystick ID', | |
description: 'Enter Joystick ID' | |
}); | |
JoystickPlayerMovement.prototype.initialize = function() { | |
this.FirstPersonMovement = this.entity.script.firstPersonMovement; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var JoystickCameraOrbit = pc.createScript('JoystickCameraOrbit'); | |
JoystickCameraOrbit.attributes.add('joystickId' , { type: 'string', | |
default: 'rotation', | |
title: 'Joystick ID', | |
description: 'Enter Joystick ID' | |
}); | |
JoystickCameraOrbit.attributes.add('orbitSensitivity', { | |
type: 'number', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ChangeMaterial = pc.createScript('changeMaterial'); | |
ChangeMaterial.attributes.add('trigger', { | |
title: 'Trigger Button', | |
type: 'entity' | |
}); | |
ChangeMaterial.attributes.add('materials', { | |
title: 'Materials', | |
type: 'asset', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ChangeColor = pc.createScript('changeColor'); | |
ChangeColor.attributes.add('trigger', { | |
title: 'Trigger Button', | |
type: 'entity' | |
}); | |
ChangeColor.attributes.add('targetMaterial', { | |
title: 'Material', | |
description: 'Material for which the Diffuse color will change.', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var TvScreen = pc.createScript('tvScreen'); | |
TvScreen.attributes.add('screenMaterial', { | |
title: 'Screen Material', | |
description: 'The screen material of the TV that displays the video texture.', | |
type: 'asset', | |
assetType: 'material' | |
}); | |
TvScreen.attributes.add('playEvent', { | |
title: 'Play Event', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var VideoTexture = pc.createScript('videoTexture'); | |
VideoTexture.attributes.add('videoAsset', { | |
title: 'Video Asset', | |
description: 'MP4 video asset to play back on this video texture.', | |
type: 'asset' | |
}); | |
VideoTexture.attributes.add('videoUrl', { | |
title: 'Video Url', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macroScript Working2Local | |
buttontext: "Worknig2Local" | |
category: "[3DGROUND]" | |
( | |
on execute do ( | |
fn ConvertWorking2Local = ( | |
if (selection.count == 0) do return messageBox "Please select objects" title: "Warning!" | |
toolMode.coordsys #working_pivot | |
local tm = WorkingPivot.getTM() | |
selection.pivot = tm.translationpart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<h1>Test title</h1> | |
</body> | |
</html> |