RSS

Tag Archives: plugin

Step-by-Step guide for developing Android Plugin for Unity3D (II)


In previous blog, I have covered how to handshake Native Android code with Unity3D. The example shown therein is pretty simple: how to call a java function in C#!

In this blog, I am trying to step one more stride further: to create and use an Android View in Unity3D. The example shown here is an Android ImageView, however, this approach is generally applicable to all kinds of Android Views, ViewGroups and custom views.

imageAn Android ImageView

imageUse Android ImageView in Unity3D

Read the rest of this entry »

 
9 Comments

Posted by on August 10, 2016 in Android, Programming, Unity 3d

 

Tags: , , , , , , ,

Install Statistics plugin for AndroidStudio: crash and troubleshooting


Statistic is a very powerful plugin for IntelliJ IDEA, which is very useful to show files sorted by their extension along with size, line count LOC etc.

However, if you install this into the latest version of Android Studio, you are most likely to get the below error message:

Plugin ‘Statistic’ failed to initialize and will be disabled. Please restart Android Studio. com.intellij.diagnostic.PluginException: com/jpower8/idea/plugin/statictic/StatisticApplicationComponent : Unsupported major.minor version 51.0 [Plugin: Statistic] at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:130).

To troubleshoot this problem, follow below procedures:

Select Android Studio in Applications:

image

Right click Android Studio > Show Package Contents

image

Open the Info.plist

image

Change the JVMVersion from 1.6* or whatever –> 1.8

image

Of course you have to install JDK 1.8! Restart Android Studio and enjoy!

image

 
Leave a comment

Posted by on May 4, 2016 in Android

 

Tags: , , , , , , , ,

Step-by-Step guide for developing Android Plugin for Unity3D (I)


This series of post outlines the development of Android plugins for Unity3D. I had been asked to develop Android plugins for Unity3D every few days or months, each time following similar paths which I think would be useful to those who will do the same job. And here is how.

Clone the source code in GitHub here !

Tools you need:

  • Android Studio
  • Unity3D
  • Android Devices for testing
  • Some patience to go through this post

Let’s get started.

The 1st example is extremely simple. We define a function DoSthInAndroid() that dump some information using Java Log.i() function, and get this function called in Unity3D. Though simple enough, it outlines all the required procedures, and are very useful to understand the entire workflow.

  • Start Android Studio, create an Android project (AndroidAddin) with an Empty Activity.
  • In Android Studio, create another library project (AndroidLib) by clicking the menu File > New > New Module

image

Read the rest of this entry »

 
13 Comments

Posted by on December 31, 2015 in Programming, Unity 3d

 

Tags: , , , , , , ,

UnityVS now free: Use Visual Studio instead of MonoDevelop to design games


UnityVS is now a product of Microsoft, as Microsoft Acquired SyntaxTree. This means that you can use Visual Studio to develop Unity Apps, Games, for free.

Visual Studio 2010 Tools for Unity
Visual Studio 2012 Tools for Unity
Visual Studio 2013 Tools for Unity

Some cool features include:

Project Explorer right inside VS, no need to jump over to Unity while coding

image

Read the rest of this entry »

 
Leave a comment

Posted by on August 9, 2014 in Unity 3d

 

Tags: , , , , , , ,

Rhino C# Development (IV) :Using new RhinoCommon API to develop Rhino3D .net plugins


Rhino3D has changed its .net plugin development implementation. Although you can still use the Rhino.NET SDK to create Rhino plug-ins with the same capabilities as Rhino C++ SDK developers, however, Rhino.NET will NOT be available in Rhino 6. Rhino3D instead prefers using RhinoCommon if possible, and RhinoCommon is the new .NET plug-in SDK for Rhino 5+.

To see how to use the old Rhino.net approaches in Rhino3D plugin development, refer to my previous blogs:

  • Rhino C# Development (I) : Get Visual Studio Wizard ready
  • Rhino C# Development (II) : HelloRhino
  • Rhino C# Development (III) : Add Winform UI to Rhino


    In this blog, I am going to show how to use the new RhinoCommon API to develop .net plugins for Rhino3D.

    • Download the new RhinoCommon Plug-in SDK:

      Project wizards for plug-ins and commands are ready for Visual Studio 2010, 2012 and 2013, both in C# and Vb.Net, and including in Ultimate, Professional, Premium, C# Express, Vb Express and Windows Desktop Express where available.

      Same as installing from VS ‘Extension Manager’. After installing the wizards with the Extensions Manager, when you create a new project in Visual Studio, set the Framework to 4.0 or above in order to see the Rhino plug-in in the list.

    image

  • Read the rest of this entry »

     
    2 Comments

    Posted by on June 10, 2014 in CAD, Dotnet/C#, Programming

     

    Tags: , , , , , , , , ,

    WordPress free site: how to format/syntax highlighting your code without any plugin installed


    WordPress has many plugins to format or highlight your code for almost every modern programming languages such as C, C++, C#, Java, Php, Pyton, Perl, Matlab, Javascript, to list a few.

    However, for free WordPress sites which do not have access or control to install plugins, it is very hard to post your code with color syntax highlighted. I have been suffering from this, and resort to capture my code in images, which look nice, but often complained by the readers. For instance, one of my answer at StackOverflow, some coder complained: why image, not code?

    enter image description here
    http://stackoverflow.com/questions/7749341/very-basic-python-client-socket-example

    Read the rest of this entry »

     
    1 Comment

    Posted by on March 8, 2014 in General, Linux, Windows

     

    Tags: , , , , , , ,

    Building OpenSceneGraph with Visual Studio 2013


    Visual Studio 2013 has been out for a few months, and OpenSceneGraph also has their latest release up to version 3.3.1. It is now possible to build OpenScenegraph, inclusive of most widely used plugins, all with Visual Studio 2013.

    • Extract the dependency packages to “C:\Osg331\3rdParty”, use contents in either the x86 or x64 folder, but not both.
      image

    Read the rest of this entry »

     
    12 Comments

    Posted by on February 25, 2014 in osg, Programming

     

    Tags: , , , , , , ,