Git Product home page Git Product logo

unitylibrary's People

Contributors

a180285 avatar abhilash1910 avatar agarcialeon avatar atknssl avatar bahuman avatar carloshbcabral avatar elicdavis avatar emirkivrak avatar factuall avatar falcon5077 avatar forlornu avatar hasanbayatme avatar igorrafael avatar kaustubh01 avatar lashabuxo avatar lesserknownthings avatar lmckamey avatar lootheo avatar mousedoc avatar nafeej avatar pkunjam avatar sacristan avatar smkplus avatar tanghuipang avatar unitycoder avatar wbm1113 avatar xxxt0shiiixxx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unitylibrary's Issues

Add Code Sponser

Hi.

We can use codesponser.io to fund this project for the hard work.

I would be happy to hear your opinions about this idea.

Thanks.

Github page for UnityLibrary

I have created a new branch called gh-pages that will host the website for the UnityLibrary.
I think this way, we can provide visitors some examples on how to use the scripts that form the library.

NOTE: Theme is still pending for approval.

Please include here your opinions on what to include in the web.

Add Serializable Types

Hi.

I have found some Unity types such as Vector3, Quaternion, ... does not support serialization, while we need to serialize them.

So, it is good idea to make an serializable version of them. for example Vector3Serializable.

Here is a simple example using SerializableAttribute: (Have a look at examples link at below to get idea)

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[Serializable]
public struct Vector3Serializable {

    public float x;
    public float y;
    public float z;

    // Place Constructors

    // Do implicit conversion between Vector3 and Vector3Serializable

}

Or by using ISerializable interface.

Now, the list of types that we can make:

  • Vector4 -> Vector4Serializable | Example
  • Vector3 -> Vector3Serializable | Example
  • Vector2 -> Vector2Serializable | Example
  • Mesh -> MeshSerializable | Example
  • Quaternion -> QuaternionSerializable | Example
  • Color - ColorSerializable | Example
  • Color32 -> Color32Serializable | Example
  • Let me know if i have missed one.

Also, we can add some more serializable custom types such as SerializableDictionary, SerializableCollection or SerializableList.

Or even some custom classes such MyCustomType.

Also there might be some unserializable types in System types.

Thanks.

Add Namespace to All Scripts

Hi.

If someone wants to include the whole library in it's own project, there might be some name collisions. or even one script might throw name exceptions.

So it is good idea to choose a namespace for all of the UnityLibrary scripts and commit the namespace to all of them.

I recommend UnityLibrary namespace for all scripts.

Any suggestions for namespace name is appreciated.

If all accept it, we will go to add namespace to all scripts.

Thanks.

Bug when opening in Unity 2017.1.0f3

When I'm opening the project in a version, which is mentioned in ProjectSettings/Projectversion.txt file, it has 1 error:

Assets/Scripts/Editor/ContextMenu/GetVideoAspectRatioEditor.cs(22,36): error CS1061: Type UnityEngine.Video.VideoPlayer' does not contain a definition for height' and no extension method height' of type UnityEngine.Video.VideoPlayer' could be found. Are you missing an assembly reference?

Add 2D Follow Rigidbody Script

Hi.

Same as #9 (Add 2D Follow Script) but uses Rigidbody2D instead of direct manipulation to transform.position.

Also now we should use FixedUpdate instead of Update.

So we should use rigidbody2D.MovePosition (); instead of transform.position.

Make sure to add all features from #9.

Thanks.

Move the whole library to a Unity Project

Hi.

Is it a good idea to move the whole library files such as shaders, scripts, ... to a new empty unity project?

It makes our works easier and we can check our scripts together.

If you accept it, i will do it.

Thanks.

Update Old Shaders

Hi.

We need to update the below shaders:

DebugNormalsTangets
Equirectangular
LerpColorNearToFarPlane
VertexColorMesh
UnlitFakeCurved

If you found any old shader please post it here.

Thanks.

Creation of shared blog for community members

A good idea could be to create a new separate repository that uses Github pages as a blog for community members that could be used to include useful tutorials or announcements for the community.

Add Blur Shaders

Glass, Gaussian, Radial, ... Blur Shaders.

We can add complete blur shaders for using in UI and in game objects.

You can find pre-made blur shaders on unity assetstore, but we needed a free and complete blur shader that everyone can use.

Any more suggestions are welcome.

Thanks.

Where is Contributing Guidelines?

Hi.

I have checked the files inside of this repository but i didn't find anything that contains Contribution guidelines.

GitHub provides a special file for this named CONTRIBUTING, plus CODE_OF_CONDUCT.

You can add these files to the repository to let people contribute and collaborate with this project.

Thanks.

Update Old Scripts

Hi.

Here is the list of scripts to be updated:

GrabDesktop.cs

ColorCorrectionCurvesLayers.cs

GrayscaleLayers.cs

RandomTiles

If you found any old script, please post it here.

Thanks.

Design logo for UnityLibrary

Currently the README file of this repository doesn't contain a logo for the library. It could be great to have a custom logo for our repository and give it more visibility.

Requests

(can post requests here)

Some ideas for now

  • Stringbuilder example for concatenation without garbage collection problems
  • Camera controllers for common use (like: orbit, fly, lookaround, follow..)
  • Mathi. library (same as Mathf. but just for ints, should be faster without using System.Math. that Mathf. uses) *maybe can use SIMD later also?

Android Demo doesn't start

Hey guys :),

My question was if I can use the line drawing for my android app and how?

Greetings,
Kristina

Remove script templates for Javascript

Javascript support has been deprecated in Unity3D as a programming language (note that I'm not pointing to Javascript plugins when you export for WebGL platform). So script templates should be removed from the library or move them to a legacy folder.

Add Useful Articles to Wiki

Hi.

We need to add some useful tutorials and articles to Wiki to make it even more useful.

Also we can collect useful posts, articles from the internet and unity community and gather all of them all in one wiki.

A good resource is the ๐Ÿ‘ด Unity Official Wiki, there are plenty of old utilities and tutorials that can be updated and added to our wiki.

Also we post tips & tricks to the Wiki, Everyone has it's own tricks, what if everyone have all tricks? it will be nice. ๐ŸŽ‰

EDIT: It seems the Unity Official Wiki is down these days. so you can use Internet Archive.

Unity Offical Wiki at Internet Archive

Thanks.

Auto Mobile Resoltion

How about contributing the mobile resolution response script I made?

The camera is sized to fit the mobile environment.

Does it already exist?

Generate documentation and host it with Github Pages.

Althougt code can be commented in the scripts, could be great to generate automatic documentation for the scripts and host it in the gh-pages branch of this repository.

In this way we can have a presentation web for the library and also the related documentation on how the API works.

I have checked DocFX and it seems it's possible to implement the pipeline for hosting the documentation as stated. See it here.

DocFX is just an example, but if you find another better solution we could use it too.

Add Unit Testing

Hi.

We need to test our scripts in Play Mode and Edit Mode using Unity Test Runner to make our scripts stable for public usage.

We have Editor/Tests folder for adding test scripts, so make a new test script for each script to tests it's functionally.

Also, we should test them ourselves by interaction tests.

Thanks.

Multiple file types

I would like to submit this interesting CommandBuffer+Stencil example but the current folder structure does not have a place for multiple file types.

I was thinking about creating a "Projects" folder and add a whole unity project to it (with the contents of the unitypackage from the example).

Does anyone suggest a different approach?

Add 2D Follow Script

Follow Utility.

We should be able to attach it to any object that we want follows another object.

This follow script can have these settings:

  • offset (Vector3): The position offset for the follower.
  • followType (Enum): MoveTowards, Lerp, SmoothDamp and Acceleration Enum, Also each follow type has it's own settings.
public enum FollowType {
  MoveTowards,
  Lerp,
  Slerp,
  SmoothDamp,
  Acceleration
}
  • speed (You can use it where you need it): The speed of the follower.
  • time (You can use it where you need it for Lerp, MoveTowards, ...): The time for movement, Also you can use it as smooth time for SmoothDamp.
  • bounds (Bounds, BoxCollider2D, Vector2, ...): Can be anything, a width and height or a box collider 2d or an bounds class, also there should be an option to disable it.

EDIT: Acceleration movement http://answers.unity3d.com/answers/29757/view.html

Any more suggestions are welcome. ๐Ÿ˜„

Looking for Rigidbody2D follow script? Find it at #13

Thanks.

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.