//For questions, refer to https://github.com/guzuligo
//Version 1.0.6
var ResolutionTools = pc.createScript('resolutionTools');
ResolutionTools.attributes.add("ratio",{title:"Pixel Ratio",type:"number",default:1,min:0.01,max:2});
ResolutionTools.attributes.add("smoothness",{title:"Smoothness",type:"number",default:0,enum:[
{"NONE":-1},{"AUTO":0},{"PIXELATED":1},{"CRISP-EDGES":2}
]});
ResolutionTools.attributes.add("fps",{title:"FPS",type:"number",default:60,min:0.5,max:60,step:1,precision:1,description:
"Causes frame skips to show low frame per second rate."});
ResolutionTools.attributes.add("fpss",{title:"Slow Motion FPS",type:"boolean",default:false,description:
"If activated, PlayCanvas internal engine will be altered to reduce fps even on simulations."});
ResolutionTools.attributes.add("orientation",{title:"Default setOrientation",type:"number",default:-1, description:
"The resolution to use when setOrientation function used without attributes.",
enum:[
{"none":-1},{"any":0}, {"natural":1}, {"landscape":2}, {"portrait":3} , {"portrait-primary":4} ,
{"portrait-secondary":5} ,{"landscape-primary":6} ,{"landscape-secondary":7}
]});
This file has been truncated. show original