Skip to content

Instantly share code, notes, and snippets.

@nasser
Created October 9, 2014 20:00
Show Gist options
  • Save nasser/3f870f1b8eba26ed0707 to your computer and use it in GitHub Desktop.
Save nasser/3f870f1b8eba26ed0707 to your computer and use it in GitHub Desktop.
unity.core=> (pprint (dehydrate (object-named "Main Camera")))
{:children [],
:transform
[{:has-changed true,
:rotation (0.0, 0.0, 0.0, 1.0),
:local-position (0.0, 1.0, -10.0),
:parent nil,
:euler-angles (0.0, 0.0, 0.0),
:local-euler-angles (0.0, 0.0, 0.0),
:name "Main Camera",
:forward (0.0, 0.0, 1.0),
:type UnityEngine.Transform,
:local-scale (1.0, 1.0, 1.0),
:up (0.0, 1.0, 0.0),
:local-rotation (0.0, 0.0, 0.0, 1.0),
:active true,
:hide-flags None,
:right (1.0, 0.0, 0.0),
:position (0.0, 1.0, -10.0),
:tag "MainCamera"}],
:audio-listener
[{:type UnityEngine.AudioListener,
:velocity-update-mode Dynamic,
:enabled true,
:active true,
:tag "MainCamera",
:name "Main Camera",
:hide-flags None}],
:is-static false,
:behaviour
[{:type UnityEngine.Behaviour,
:enabled true,
:active true,
:tag "MainCamera",
:name "Main Camera",
:hide-flags None}],
:name "Main Camera",
:type UnityEngine.GameObject,
:layer 0,
:active true,
:hide-flags None,
:camera
[{:pixel-rect (x:0.00, y:0.00, width:960.00, height:496.00),
:aspect 1.935484,
:field-of-view 60.0,
:hdr false,
:rendering-path UsePlayerSettings,
:is-ortho-graphic false,
:layer-cull-distances
[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
:name "Main Camera",
:use-occlusion-culling true,
:projection-matrix 0.89489 0.00000 0.00000 0.00000
0.00000 1.73205 0.00000 0.00000
0.00000 0.00000 -1.00060 -0.60018
0.00000 0.00000 -1.00000 0.00000
,
:background-color RGBA(0.192, 0.302, 0.475, 0.020),
:culling-mask -1,
:type UnityEngine.Camera,
:fov 60.0,
:far-clip-plane 1000.0,
:event-mask -1,
:depth-texture-mode None,
:active true,
:hide-flags None,
:near-clip-plane 0.3,
:orthographic false,
:near 0.3,
:depth -1.0,
:orthographic-size 5.0,
:tag "MainCamera",
:far 1000.0,
:clear-stencil-after-lighting-pass false,
:clear-flags Skybox,
:enabled true,
:rect (x:0.00, y:0.00, width:1.00, height:1.00),
:transparency-sort-mode Default,
:world-to-camera-matrix 1.00000 0.00000 0.00000 0.00000
0.00000 1.00000 0.00000 -1.00000
0.00000 0.00000 -1.00000 -10.00000
0.00000 0.00000 0.00000 1.00000
,
:target-texture nil,
:layer-cull-spherical false}],
:tag "MainCamera",
:guilayer
[{:type UnityEngine.GUILayer,
:enabled true,
:active true,
:tag "MainCamera",
:name "Main Camera",
:hide-flags None}]}
nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment