Unity3d assetdatabase.setlabels startassetediting Validatemoveasset Grammar Review

Source: Internet
Author: User

Welcome to Unity Learning, unity training, Unity Enterprise training and education zone, there are many u3d resources, u3d training videos, u3d tutorials, U3d Frequently asked questions, U3d Project source code, we are committed to creating the industry Unity3d training, learning the first brand.

Assetdatabase.saveassets Saving Resources

static function saveassets (): void

Description Description

Writes all unsaved asset changes to disk.

Writes any unsaved resource changes to the disk.

Assetdatabase.setlabels setting up a label list

static function setlabels (obj : Object, labels : string[]): void

Description Description

Replaces that list of labels in an asset.

Replace the label list for the resource.

Assetdatabase.startassetediting Start Resource Editing

static function startassetediting (): void

Description Description

Begin Asset Importing. This lets your group several asset imports together into one larger import.

Start the resource import. It allows you to combine multiple resources into a larger import.

Assetdatabase.stopassetediting Stop Resource editing

static function stopassetediting (): void

Description Description

Stop Asset Importing. This lets your group several asset imports together into one larger import.

Stop the resource import. This enables you to combine multiple resources into a larger import.

Assetdatabase.validatemoveasset Verifying Mobile Resources

static function validatemoveasset (oldpath : String, NewPath : string): String

Parameters parameters
    • OldPathThe path where the asset currently resides
      The path where the current resource is located
    • NewPathThe path which the asset should is moved to
      The path to which the resource should be moved

Returns

String–an empty string, if the asset can be moved, and an error string otherwise. All paths is relative to the project folder. Like: "Assets/mytextures/hello.png"

Returns a String type – if the resource can be moved to return an empty string, the person returns an error string. All paths are relative to the project catalog file. For example, "Assets/mytextures/hello.png".

Description Description

Checks If an asset file can is moved from the one folder to another. (without actually moving the file)

Checks whether a resource file can be moved from one folder to another. (Not really moving this file)

For more highlights, please click http://www.gopedu.com/

Unity3d assetdatabase.setlabels startassetediting Validatemoveasset Grammar Review

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.