Skip to content

Instantly share code, notes, and snippets.

@yadurajiv
yadurajiv / gist:d88269025a8b4a7d17374b290d4daa82
Created April 18, 2020 11:47
noble connect - mirror - error
Assets\Noble Connect\Mirror\Internal\NobleNetworkLobbyManager.cs(24,20): error CS1061: 'NetworkWriter' does not contain a definition for 'Write' and no accessible extension method 'Write' accepting a first argument of type 'NetworkWriter' could be found (are you missing a using directive or an assembly reference?)
Assets\Noble Connect\Mirror\Internal\NobleNetworkLobbyManager.cs(25,20): error CS1061: 'NetworkWriter' does not contain a definition for 'Write' and no accessible extension method 'Write' accepting a first argument of type 'NetworkWriter' could be found (are you missing a using directive or an assembly reference?)
Assets\Noble Connect\Mirror\Internal\NobleServer.cs(582,27): error CS0117: 'NetworkServer' does not contain a definition for 'SendToClient'
Assets\Noble Connect\Mirror\Internal\NobleServer.cs(605,111): error CS0117: 'NetworkServer' does not contain a definition for 'SpawnWithClientAuthority'
Assets\Noble Connect\Mirror\Internal\NobleServer.cs(606,116): error CS0117: 'NetworkServer' doe
@yadurajiv
yadurajiv / TerrainScript.cs
Created March 27, 2019 18:34
Animated Terrain in Unity using height maps, Perlin Noise and Terrains as seen here - https://www.youtube.com/watch?v=V2zzUbfcnQU
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TerrainScript : MonoBehaviour
{
Terrain terrain;
public int depth = 20;
@yadurajiv
yadurajiv / GetAudioData.cs
Created January 17, 2019 05:46
GetAudioData from microphone and calculate pitch
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Audio;
[RequireComponent(typeof(AudioSource))]
public class GetAudioData : MonoBehaviour {
AudioSource _audioSource;
@yadurajiv
yadurajiv / HelloWorldScene.cpp
Last active May 31, 2017 08:19
Strange flicker cocos2d-x - integrated gfx card vs dedicated gfx card - https://www.youtube.com/watch?v=LrOEYtUKeh8 (works fine on the dedicated card)
#include "HelloWorldScene.h"
USING_NS_CC;
Scene* HelloWorld::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
@yadurajiv
yadurajiv / HelloWorldScene.cpp
Last active May 31, 2017 07:04
cocos2d-x full screen jitter test
#include "HelloWorldScene.h"
#include "editor-support/cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
USING_NS_CC;
using namespace cocostudio::timeline;
Scene* HelloWorld::createScene()
{
https://docs.google.com/document/d/1-pyhkBWWiSY684F0JebMI4QWodLrq50fr6xEx_f3yvM/edit?usp=sharing