Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by chrono1081 · Aug 22, 2011 at 12:48 PM · iosstandard-assetsbce0019bce0005bce0048

Unity 3.4 standard assets not working in iOS builds?

Hi guys,

I upgraded to Unity 3.4 for its new features, however it screwed up itself somehow. What I mean by that is that its default scripts such as ThirdPersonController.js no longer work when trying to build to iOS. Did something change? Is there a way to fix this?

Here is an example of some of the errors I will get:

 ----CompilerOutput:-stdout--exitcode: 255--compilationhadfailure: True--outfile: Temp/Assembly-UnityScript-firstpass.dll
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(325,33): BCE0048: Type 'Object' does not support slicing.
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(326,33): BCE0048: Type 'Object' does not support slicing.
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(327,44): BCE0019: 'CrossFade' is not a member of 'Object'. 
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(329,33): BCE0048: Type 'Object' does not support slicing.
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(330,33): BCE0048: Type 'Object' does not support slicing.
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(331,44): BCE0019: 'CrossFade' is not a member of 'Object'. 
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(337,44): BCE0019: 'CrossFade' is not a member of 'Object'. 
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(342,41): BCE0048: Type 'Object' does not support slicing.
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(343,52): BCE0019: 'CrossFade' is not a member of 'Object'. 
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(346,41): BCE0048: Type 'Object' does not support slicing.
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(347,52): BCE0019: 'CrossFade' is not a member of 'Object'. 
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(350,41): BCE0048: Type 'Object' does not support slicing.
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js(351,52): BCE0019: 'CrossFade' is not a member of 'Object'. 
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonCamera.js(141,9): BCE0005: Unknown identifier: 'currentHeight'.
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonCamera.js(142,9): BCE0005: Unknown identifier: 'currentHeight'.
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonCamera.js(145,9): BCE0005: Unknown identifier: 'currentRotation'.
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonCamera.js(150,37): BCE0005: Unknown identifier: 'currentRotation'.
 Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonCamera.js(153,38): BCE0005: Unknown identifier: 'currentHeight'.
 Assets/Standard Assets/Scripts/Camera Scripts/SmoothFollow.js(32,9): BCE0005: Unknown identifier: 'wantedRotationAngle'.
 Assets/Standard Assets/Scripts/Camera Scripts/SmoothFollow.js(33,9): BCE0005: Unknown identifier: 'wantedHeight'.
 Assets/Standard Assets/Scripts/Camera Scripts/SmoothFollow.js(35,9): BCE0005: Unknown identifier: 'currentRotationAngle'.
 Assets/Standard Assets/Scripts/Camera Scripts/SmoothFollow.js(36,9): BCE0005: Unknown identifier: 'currentHeight'.
 Assets/Standard Assets/Scripts/Camera Scripts/SmoothFollow.js(39,9): BCE0005: Unknown identifier: 'currentRotationAngle'.
 Assets/Standard Assets/Scripts/Camera Scripts/SmoothFollow.js(42,9): BCE0005: Unknown identifier: 'currentHeight'.
 Assets/Standard Assets/Scripts/Camera Scripts/SmoothFollow.js(45,9): BCE0005: Unknown identifier: 'currentRotation'.
 Assets/Standard Assets/Scripts/Camera Scripts/SmoothFollow.js(50,31): BCE0005: Unknown identifier: 'currentRotation'.
 Assets/Standard Assets/Scripts/Camera Scripts/SmoothFollow.js(53,32): BCE0005: Unknown identifier: 'currentHeight'.


The thing is I've never touched these scripts, they are not ones I have written they are default assets and will work fine if I change my build target to PC/Mac instead of iOS (but I need iOS). Some of these scripts are not even used in my game such as the Smooth Follow so I don't know why I'm getting errors on it.

Has anyone else ran into this? Is there a fix? I'd really like to use Unity 3.4 but cannot if I can't get this working.

I've already tried reimporting assets, reinstalling, and disabling the offending scripts but nothing is working.

Any help would be greatly appreciated :)

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by skine · Aug 24, 2012 at 03:16 PM

add this to smoothfollow.js

 var currentHeight;
 var wantedHeight;
 var currentRotationAngle;
 var wantedRotationAngle;
 var currentRotation : Quaternion;

I have two errors left, as soon as they are fixed I will post it here (FIXED NOW)

change this in dragrigidbody.js

if (!springJoint)

{

var go = new GameObject("Rigidbody dragger");

go.AddComponent("Rigidbody");

springJoint = go.AddComponent("SpringJoint");

go.rigidbody.isKinematic = true;

}

and delete these files:

 FPFlyer.js
 WaveMeshAdjustment.js
 WaterLightmapFog.js
 WaveAnimation.js
 UnderwaterEffects.js
 PerformanceTweak.js
 Heron.js

and all errors are now fixed, you can play this on android or IOS :)

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image cultzone · May 06, 2020 at 03:24 AM 0
Share

Thanks very much man!!!! You re our Gzus!!!

avatar image
2

Answer by tylo · Dec 19, 2011 at 02:24 AM

I had this problem with ThirdPersonControl.js and the var _animation variable.

I changed it to be strong typed by making the variable var _animation : Animation and the Slicing issue went away. I assume it has to do with the dynamic typing.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by onllm · Aug 23, 2011 at 12:31 AM

same problem here

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by sanghai · Oct 11, 2011 at 08:49 AM

Same problem here ...tooo ...any answers...

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

UNITY 3d 3.4 doesnt understand its own script? 5 Answers

BCE0019: 'mesh' is not a member of 'UnityEngine.Component' on Android Build 2 Answers

iOS Build Error, runs normal in play mode 1 Answer

Some problems after switch the game for iOS mode 2 Answers

Add seconds to timer countdown. 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges