Code Monkey home page Code Monkey logo

unity-hue's Introduction

unity-hue

Control Philips Hue lamp in Unity

How to use

  • Open the project or import Unity-Hue.unitypackage in an existing project
  • Import Hue Bridge.prefab in your scene
  • Follow Phillips Hue documentation to create an username, put it in the username field.
  • Click on Discover Lights to instanciate all the lights connected to the bridge in the Unity scene.

Properties

Unity-hue can access to the basic light set up. It can work in the editor without play mode enabled.

  • State (On/Off)
  • Color

Credit

This repo is a fork of unity-hue by tnayuki, updated

unity-hue's People

Contributors

marcteys avatar

Stargazers

Sean Liu avatar Vettorazi avatar Tobias Müller avatar  avatar Dan Love avatar Joseph Beard avatar Nils avatar  avatar Julien Nesme avatar  avatar  avatar Serhan Ulkumen Ardila avatar NIEDASEN avatar Stefan Schlupek avatar Kris Meeusen avatar Abhimanyu Aryan avatar  avatar mika avatar Michael Stevenson avatar Paweł Luszuk avatar Matt Summers avatar Andrew Tokmakoff avatar Giorgio Pomettini avatar George Erfesoglou avatar Lionel Dominjon avatar Shawn Steffey avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

unity-hue's Issues

HueBridgeEditor compile error

I have been toying around with this code. Thanks for your effort so far.
I tried this on Unity 2020.3.24f1 and am getting this error preventing the code to compile

HueBridgeEditor.cs(19, 7): [CS0234] The namespace"changed" is not present in "GUI" . (Maybe missing reference in assembly?)

My temporary fix is to comment out remove these lines:

// if (GUI.changed) {
//	EditorUtility.SetDirty (target);
// }

This makes it work, but maybe you can take a closer look at this? 😃 I am not a too familiar with editor scrips (obviously).

OverflowException: Value was either too large or too small for a character.

Hi
I've used unity-hue successfully before (I posted it on twitter, vidoe here)
The plan this time is to hook it up to a HoloLens 2.

But now I am receiving this error from MiniJson: OverflowException: Value was either too large or too small for a character.
It doesn't state a line but I'm pretty sure it happens at:

var lights = (Dictionary<string, object>)Json.Deserialize (streamReader.ReadToEnd());
I am guessing that the JSON from Hue Bridge has become too large? I have about 10 Hue lamps..

This is probably a limitation by miniJson that is hard to overcome easily? Could an approach be to switch to the Untiy deserializer?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.