Giter VIP home page Giter VIP logo

projecttinysamples's Introduction

Project Tiny Samples

This repository contains samples for Project Tiny. Please read through the Project Tiny guide to understand the current project state, limitations, and getting started information.

Current samples:

Tiny3D

A "Hello World" style sample with minimal assets & code. It's a great starting point for a new "clean" project.

TinyRacing

Intended as a lightweight example of the type of content you can build with Project Tiny. It is a complete game slice showing a number of elements such as accepting input, implementing simple AI, handling collisions, and similar. Please explore and play around with the sample project to get a feel for what developing with pure DOTS looks like.

BlendShapeDemo

Demonstrates how to use the blendShape feature and showcases how to do a simple character selection.

TinyKitchen

Uses physics to showcase simple game play with colorful level design and advanced authoring workflow. In addition to that Tiny Kitchen uses custom web template.

TinyPhysics

Illustrates how to combine simple Unity Physics behaviors and common input methods (keyboard, touch, mouse).

TinyTime

Demonstrates how to use in-game text rendering, Skinned mesh renderer and how to dynamically chagne the scene lighting.

TinyFactory

Demonstrates how Animations can be added to a scene (no code).

TinyAquarium

Demonstrates Particle System the first iteration of the particle system which mirrors a subset of the functionalities available with the built-in Particle System (aka shuriken).

RuntimeGeometry3D

Demonstrates how to do Dynamic meshes creation at runtime.

TinyGems and TinySpaceship

2D sample projects that showcases some of the features that can be found inside the 2D Entities package.

projecttinysamples's People

Contributors

abdul-unity avatar jcunity avatar unityted avatar vvuk 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

projecttinysamples's Issues

Getting namespace errors for authoring scripts in the examples

I keep getting errors such as the one below in the authoring scripts:

The type or namespace name 'Player' could not be found (are you missing a using directive or an assembly reference?) [TinySpaceship.Authoring]

I have tried both VS Code as well as Visual Studio 2019 running on Windows 10. My editor is set to PC, Mac & Linux Standalone.

Build Wasm-Tiny3D failed in BuildStepExportEntities after 123ms. liblz4

Hello, I'm trying to build and run Tiny3D to Wasm using Ubuntu 18.04, Unity version 2019.3.2f1, but can't. This is full stacktrace:

Build Wasm-Tiny3D failed in BuildStepExportEntities after 82ms.
liblz4
  at (wrapper managed-to-native) Unity.Tiny.Codec.CodecService.CompressBoundLZ4(int)
  at Unity.Tiny.Codec.CodecService.CompressUpperBound (Unity.Tiny.Codec.Codec codec, System.Int32 size) [0x00012] in /home/lorkin/related_to_projects/ProjectTinySamples/Tiny3D/Library/PackageCache/[email protected]/Unity.Tiny.Codec/Codec.cs:30 
  at Unity.Tiny.Codec.CodecService.Compress (Unity.Tiny.Codec.Codec codec, System.Byte*& src, System.Int32 srcSize, System.Byte*& dst, Unity.Collections.Allocator allocator) [0x00001] in /home/lorkin/related_to_projects/ProjectTinySamples/Tiny3D/Library/PackageCache/[email protected]/Unity.Tiny.Codec/Codec.cs:46 
  at Unity.Entities.Runtime.Build.WorldExport.WriteWorldToFile (Unity.Entities.World world, System.IO.FileInfo outputFile) [0x000dc] in /home/lorkin/related_to_projects/ProjectTinySamples/Tiny3D/Library/PackageCache/[email protected]/Unity.Entities.Runtime.Build/WorldExport.cs:63 
  at Unity.Entities.Runtime.Build.BuildStepExportEntities.<RunBuildStep>g__ExportSceneToFile|6_0 (UnityEngine.SceneManagement.Scene scene, System.Guid guid, Unity.Entities.Runtime.Build.BuildStepExportEntities+<>c__DisplayClass6_0& ) [0x0008d] in /home/lorkin/related_to_projects/ProjectTinySamples/Tiny3D/Library/PackageCache/[email protected]/Unity.Entities.Runtime.Build/BuildStepExportEntities.cs:61 
  at Unity.Entities.Runtime.Build.BuildStepExportEntities.RunBuildStep (Unity.Build.BuildContext context) [0x000a0] in /home/lorkin/related_to_projects/ProjectTinySamples/Tiny3D/Library/PackageCache/[email protected]/Unity.Entities.Runtime.Build/BuildStepExportEntities.cs:76 
  at Unity.Build.BuildPipeline.RunBuildSteps (Unity.Build.BuildContext context) [0x00100] in /home/lorkin/related_to_projects/ProjectTinySamples/Tiny3D/Library/PackageCache/[email protected]/Editor/Unity.Build/BuildPipeline.cs:241 
UnityEngine.Debug:LogFormat(LogType, LogOption, Object, String, Object[])
Unity.Build.BuildPipelineResult:LogResult() (at Library/PackageCache/[email protected]/Editor/Unity.Build/BuildPipelineResult.cs:126)
Unity.Build.<>c:<.cctor>b__43_1(BuildSettings) (at Library/PackageCache/[email protected]/Editor/Unity.Build/BuildSettingsScriptedImporterEditor.cs:51)
Unity.Build.<>c__DisplayClass34_0:<RefreshHeader>b__1() (at Library/PackageCache/[email protected]/Editor/Unity.Build/BuildSettingsScriptedImporterEditor.cs:229)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /home/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)

I've installed liblz4 from several different sources, so it should be there.

Apart from this is also get 3 of this error:

A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.

I tried building on Windows 10, that went fine.

Br

WebGL LibName does not exist

Hi! I wan't to test de tiny race sample in web, but when I switch to WebGL it throws that error:

Library\PackageCache\[email protected]\Unity.Tiny.Image2D.Authoring\libwebp\WebpEncoder.cs(189,20): error CS0103: The name 'LibName' does not exist in the current context

I searched on the web with no success, any ideas?

It's a DLL name libwebp, I placed in the Assets folder with no success too.

Thanks

VS 2022 workloads

Hello , I've installed the necessary requirement for Tiny project but I don't have vs2019 I got vs2022 , I had to install many versions of Unity before I figure out it needs specific version of Unity ,

is it possible to update this project to A LTS version I don't want to keep multiple versions beside it would be nice if we can access Bee.net core library on it's own project ( which used both in Project Tiny and Native Widget2 library )

So is there any workaround to pass 2022 as my default IDE for Project Tiny ?

I'm thinking of registering a system environment variable but I'm not sure if it would work ?

I have this issue when I going to build on WEBGL, don't know why is happening

Library\PackageCache\[email protected]\Runtime\Unity.Tiny.Rendering.Native\RendererBGFX.cs(12,18): error CS0234: The type or namespace name 'Web' does not exist in the namespace 'Unity.Tiny' (are you missing an assembly reference?)

Library\PackageCache\[email protected]\Runtime\Unity.Tiny.Rendering.Native\ShadersBGFX.cs(12,18): error CS0234: The type or namespace name 'Web' does not exist in the namespace 'Unity.Tiny' (are you missing an assembly reference?)

WebGL build issue

I opened the project in Unity 2019.3.12f1 and when I try to create a WebGL build, I get the following errors:

Library\PackageCache\[email protected]\TypeRegGen\CecilUtils.cs(6,13): error CS0234: The type or namespace name 'Cecil' does not exist in the namespace 'Unity' (are you missing an assembly reference?)
Library\PackageCache\[email protected]\TypeRegGen\InterfaceGen.cs(5,17): error CS0234: The type or namespace name 'Build' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Library\PackageCache\[email protected]\TypeRegGen\InterfaceGen.cs(9,13): error CS0234: The type or namespace name 'Entities' does not exist in the namespace 'Unity' (are you missing an assembly reference?)
Library\PackageCache\[email protected]\TypeRegGen\InterfaceGen.cs(10,13): error CS0234: The type or namespace name 'Cecil' does not exist in the namespace 'Unity' (are you missing an assembly reference?)
Library\PackageCache\[email protected]\TypeRegGen\TypeRegGen.cs(8,13): error CS0234: The type or namespace name 'Entities' does not exist in the namespace 'Unity' (are you missing an assembly reference?)
Library\PackageCache\[email protected]\TypeRegGen\TypeRegGen.cs(13,7): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\TypeRegGen\TypeRegGen.cs(64,51): error CS0246: The type or namespace name 'JsonTextWriter' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\TypeRegGen\TypeRegGen.cs(70,59): error CS0246: The type or namespace name 'JsonTextWriter' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\TypeRegGen\TypeRegGen.cs(76,58): error CS0246: The type or namespace name 'JsonTextWriter' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\[email protected]\TypeRegGen\TypeRegGen.cs(82,64): error CS0246: The type or namespace name 'JsonTextWriter' could not be found (are you missing a using directive or an assembly reference?)
Error building Player because scripts had compiler errors
Build completed with a result of 'Failed' in 5 seconds (4542 ms)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
UnityEditor.BuildPlayerWindow+BuildMethodException: 11 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in :0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Kindly suggest ways to create a successful build

Can not build for WebGL

I opened the project in Unity 2019.3.0f3 and everything worked fine in the Windows build mode. I am however getting the following errors when I switch my platform to WebGL;

Library\PackageCache\[email protected]\Runtime\Unity.Tiny.Rendering.Native\RendererBGFX.cs(12,18): error CS0234: The type or namespace name 'Web' does not exist in the namespace 'Unity.Tiny' (are you missing an assembly reference?)

Library\PackageCache\[email protected]\Runtime\Unity.Tiny.Rendering.Native\ShadersBGFX.cs(12,18): error CS0234: The type or namespace name 'Web' does not exist in the namespace 'Unity.Tiny' (are you missing an assembly reference?)

can not build when add a Text(TMP) to A Quad

i can build tinyracing in 2020.2.1f1 for android, but when i add a quad then add child node of Text(TMP) on the Scene, then always fails.
i check the shader Mobile/Distance Field , it is ok , i am confuse now.
log.
Error: Shader compiler: Compile TextMeshPro/Mobile/Distance Field: Internal error, unrecognized message from the shader compiler process. Please report a bug including this shader and the editor log.
UnityEngine.Debug:LogError (object)
Unity.Debug:LogError (object) (at Packages/[email protected]/Unity.Entities/Stubs/Unity/Debug.cs:13)
Unity.Entities.Runtime.Build.BuildStepExportScenes:CheckConversionLog
Editor.log
Editor.log
AssetImportWorker0.log

(string) (at Packages/[email protected]/Unity.Entities.Runtime.Build/BuildStepExportScenes.cs:195)
Unity.Entities.Runtime.Build.BuildStepExportScenes:Run (Unity.Build.BuildContext) (at Packages/[email protected]/Unity.Entities.Runtime.Build/BuildStepExportScenes.cs:97)
Unity.Build.BuildStepCollection:Run (Unity.Build.BuildContext) (at Packages/[email protected]/Editor/Unity.Build/BuildStepCollection.cs:77)

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.