How to reduce file size. Must read for Production Team!
How to optimize performance. Must read for Production Team!
Have fun!
This is the production chart as assigned by John in studio today. I made a very simple chart so that everyone could have a look at the position and roles.If you take a look at the default HTML file generated when building a webplayer, you'll notice that the size of the webplayer is specified there in "width" and "height" HTML properties.
Replacing these specific dimensions with "100%" will scale your web player to the full size of the browser window.
Remember to save your modified HTML file in a different location than where you're building new webplayers to or at least rename it. Otherwise new rebuilds of the webplayer will overwrite your changes.
Also notice that most browsers have a default margin set which will result in a white frame around your content if you set it to 100%, 100%. To remove that, you'll need to add a bit of CSS to the section of your HTML:<style type="text/css" media=screen>body{margin: 0px;padding: 0px;}style>Source - Unity Answers
// Properties
var waveFunction : String = "noise"; // possible values: sin, tri(angle), sqr(square), saw(tooth), inv(verted sawtooth), noise (random)
var base : float = 0.0; // start
var amplitude : float = 1.0; // amplitude of the wave
var phase : float = 0.0; // start point inside on wave cycle
var frequency : float = 0.5; // cycle frequency per second
// Keep a copy of the original color
private var originalColor : Color;
// Store the original color
function Start () {
originalColor = GetComponent(Light).color;
}
function Update () {
var light : Light = GetComponent(Light);
light.color = originalColor * (EvalWave());
}
function EvalWave () {
var x : float = (Time.time + phase)*frequency;
var y : float;
x = x - Mathf.Floor(x); // normalized value (0..1)
if (waveFunction=="sin") {
y = Mathf.Sin(x*2*Mathf.PI);
}
else if (waveFunction=="tri") {
if (x < 0.5) y = 4.0 * x - 1.0; else y = -4.0 * x + 3.0; } else if (waveFunction=="sqr") { if (x < 0.5) y = 1.0; else y = -1.0; } else if (waveFunction=="saw") { y = x; } else if (waveFunction=="inv") { y = 1.0 - x; } else if (waveFunction=="noise") { y = 1 - (Random.value*2); } else { y = 1.0; } return (y*amplitude)+base; }