h37kouya / kinect-unity Goto Github PK
View Code? Open in Web Editor NEWDraw Pattern by Unity and Kinect
License: MIT License
Draw Pattern by Unity and Kinect
License: MIT License
NullReferenceException: Object reference not set to an instance of an object
Changecolor.GetColor (System.Int32 count, System.Int32 countMax) (at Assets/PatternEffect/scripts/Changecolor.cs:79)
Changecolor+d__5.MoveNext () (at Assets/PatternEffect/scripts/Changecolor.cs:54)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)
playercontroll_2.cs
void OnTriggerEnter(Collider other)
{
Debug.Log(other.gameObject.name);
// ぶつかったオブジェクトが収集アイテムだった場合
if (other.gameObject.CompareTag("Pick up"))
{
// その収集アイテムを非表示にします
other.gameObject.SetActive(false);
// スコアを加算します
score = score + 1;
// UI の表示を更新します
SetCountText();
}
}
// UI の表示を更新する(ぶつかったとき)
void SetCountText()
{
int st = score;
// スコアの表示を更新
scoreText.text = "Count:"+ st.ToString();
// すべての収集アイテムを獲得した場合
if (score >= 12)
{
nowTime = firstTime - nowTime;
GameOver(nowTime.ToString() + "秒でクリア!", "Score:12");
}
}```
NullReferenceException: Object reference not set to an instance of an object
PlayerControll_2.Update () (at Assets/PatternEffect/scripts/PlayerControll_2.cs:192)
192行目
Vector3 posPointMan = manager.GetUserPosition(playerID);
球の回転方向が制御できていない。
メモリ関連だよなこれ...つら
System.Buffer.memcpy4 (System.Byte* dest, System.Byte* src, System.Int32 size) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.Buffer.Memcpy (System.Byte* dest, System.Byte* src, System.Int32 size) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
System.String.memcpy (System.Byte* dest, System.Byte* src, System.Int32 size) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
(wrapper unknown) KinectWrapper+DepthBuffer.PtrToStructure(intptr,object)
KinectWrapper.PollDepth (System.IntPtr depthStreamHandle, System.Boolean isNearMode, System.UInt16[]& depthPlayerData) (at Assets/KinectScripts/KinectWrapper.cs:812)
KinectManager.Update () (at Assets/KinectScripts/KinectManager.cs:1112)```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.