unity3d

《Unity3D平台AR开发快速上手--基于EasyAR4.0》随书资源和相关说明

旧时模样 提交于 2020-12-27 10:08:43
新手《Unity3D平台AR开发快速上手–基于EasyAR4.0》上市了,现在京东和淘宝都有卖。书分为2个部分,第一部分是EasyAR4.0基础内容和使用,第二部分是利用EasyAR的稀疏空间地图做室内导航的例子。 这本书的运气不错,之前分享的链接似乎还能用。总之,除了官方在书里面提供的获取方式,还可以通过网盘获取。不过保不定啥时候就封了,看命吧。 第一部分资料链接 https://drive.google.com/drive/folders/1yeSBYy77XpANE3E4kxhklkK-foMa59fD?usp=sharing https://share.weiyun.com/5G3sWi9 https://pan.baidu.com/s/1OZKCiPjzY4nOhC9ueW4Maw 提取码:mzzb 源码: https://github.com/wuyt/EasyAR4Learn 第二部分资料 https://drive.google.com/drive/folders/1yRzo6gu-dh9aQLxI2E49MhvaJoWdoL5b?usp=sharing https://share.weiyun.com/MB1KmueE 链接: https://pan.baidu.com/s/1FZ-Cyawfe7_Zq23ZBNN0ig 提取码:tyy3 源码: https:/

Unity之SDK接入(Unity与Android通信)

血红的双手。 提交于 2020-12-27 00:29:25
首先介绍一点关于Android与unity通信的知识: 完成通信主要靠unity中的class.jar包(在unity的安装目录下)。 在unity中调用android的方法: jo.call("方法名"[,参数名]) 其中[]代表可有可无。 在endroid中调用unityu的方法: 导入class.jar包,继承UnityPlayerActivity,使用UnityPlayer.UnitySendMessage("游戏对象名","unity中的方法名","参数") 现在,我们已经有基础了,可以动手操作了 1.eclipse中新建Android工程,导入Unity安装目录下的class.jar类,添加MainActivity.java代码: package com.example.test; import com.unity3d.player.UnityPlayer; import com.unity3d.player.UnityPlayerActivity; import android.os.Bundle; public class MainActivity extends UnityPlayerActivity { protected void onCreate(Bundle savedInstanceState) { super .onCreate

How to Unload unity WebGL

我只是一个虾纸丫 提交于 2020-12-26 18:57:57
问题 I am using unity webGL build and this is the way to initalize/load unity webgl in javascript. var gameInstance = UnityLoader.instantiate("gameContainer", "Build/WebGLDemo.json", {onProgress: UnityProgress}); but there is no way to unload the webgl. I can remove the canvas tag but the problem is that some resources are remains in the memory which are not garbage collected. additionally when i try to remove function DeleteGame(){ console.log("remove game"); document.getElementById(

How to Unload unity WebGL

前提是你 提交于 2020-12-26 18:54:57
问题 I am using unity webGL build and this is the way to initalize/load unity webgl in javascript. var gameInstance = UnityLoader.instantiate("gameContainer", "Build/WebGLDemo.json", {onProgress: UnityProgress}); but there is no way to unload the webgl. I can remove the canvas tag but the problem is that some resources are remains in the memory which are not garbage collected. additionally when i try to remove function DeleteGame(){ console.log("remove game"); document.getElementById(

How to Unload unity WebGL

浪子不回头ぞ 提交于 2020-12-26 18:53:45
问题 I am using unity webGL build and this is the way to initalize/load unity webgl in javascript. var gameInstance = UnityLoader.instantiate("gameContainer", "Build/WebGLDemo.json", {onProgress: UnityProgress}); but there is no way to unload the webgl. I can remove the canvas tag but the problem is that some resources are remains in the memory which are not garbage collected. additionally when i try to remove function DeleteGame(){ console.log("remove game"); document.getElementById(

How to Unload unity WebGL

本小妞迷上赌 提交于 2020-12-26 18:53:26
问题 I am using unity webGL build and this is the way to initalize/load unity webgl in javascript. var gameInstance = UnityLoader.instantiate("gameContainer", "Build/WebGLDemo.json", {onProgress: UnityProgress}); but there is no way to unload the webgl. I can remove the canvas tag but the problem is that some resources are remains in the memory which are not garbage collected. additionally when i try to remove function DeleteGame(){ console.log("remove game"); document.getElementById(

Variables are not visible in script Inspector window

送分小仙女□ 提交于 2020-12-26 08:12:27
问题 I started Unity a couple of days ago and I'm confused. This is my current workspace: This is what is should look like: I should be able to fill in the variables but I can't. 回答1: To show properties/variables in the inspector, they must be public , if they are not they won't appear. You can also view private fields by attributing them as [SerializeField] . To view custom classes in the inspector, you should mark them as [Serializable] . To hide public variables from inspector, use

Why does C# null-conditional operator not work with Unity serializable variables?

▼魔方 西西 提交于 2020-12-26 07:12:11
问题 I've noticed that if I have some variables exposed to the Unity inspector such as: [SerializeField] GameObject _tickIcon; If I leave them unassigned and try to use the null conditional operator and call a method on that object I get an exception saying the variable is not assigned. So basically instead of doing this: _tickIcon?.SetActive(false); It's forcing me to do this: if(_tickIcon != null) { _tickIcon.SetActive(false) } So I'm guessing this must be something specific to unity's runtime,

Unity application doesn't run on iOS due to Shader warning and Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED

岁酱吖の 提交于 2020-12-25 18:15:57
问题 I am new to unity and trying to get a VERY simple 2D game to work through Xcode . Everything seems to be working and the build is successful. But, it is printing the errors below - 2019-10-23 22:27:16.559673-0600 test4[19600:5249871] Built from '2019.2/staging' branch, Version '2019.2.9f1 (ebce4d76e6e8)', Build type 'Release', Scripting Backend 'il2cpp' 2019-10-23 22:27:16.569618-0600 test4[19600:5249871] -> registered mono modules 0x102e52fd0 -> applicationDidFinishLaunching() 2019-10-23 22

Unity application doesn't run on iOS due to Shader warning and Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED

爷,独闯天下 提交于 2020-12-25 18:11:42
问题 I am new to unity and trying to get a VERY simple 2D game to work through Xcode . Everything seems to be working and the build is successful. But, it is printing the errors below - 2019-10-23 22:27:16.559673-0600 test4[19600:5249871] Built from '2019.2/staging' branch, Version '2019.2.9f1 (ebce4d76e6e8)', Build type 'Release', Scripting Backend 'il2cpp' 2019-10-23 22:27:16.569618-0600 test4[19600:5249871] -> registered mono modules 0x102e52fd0 -> applicationDidFinishLaunching() 2019-10-23 22