Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8980823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:10:57+00:00 2026-06-15T20:10:57+00:00

Hi I am new bee in Unity and I am working on an app

  • 0

Hi I am new bee in Unity and I am working on an app in which i want to load my Images in Aspect fit ratio on Texture. I Know that i can achieve this using ScaleMode.ScaleToFit but i am not getting this property in Texture 2d. I am doing following like this.

Texture2D tex = Resources.Load("ImageTargetTextures/WhatTheBuck/MYPicture") as Texture2D; 
video.mIconPlane.renderer.material.mainTexture = tex; 
video.mIconPlane.transform.rotation=Quaternion.AngleAxis(180, Vector3.up); 
video.mIconPlane.transform.localScale = ScaleMode.ScaleToFit;

Video is the Object of my VideoClass and mIconPlane is public Game Object in Video Class. This will be great for me. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:10:59+00:00Added an answer on June 15, 2026 at 8:10 pm

    You can get a size of your image in pixels from one of public properties of Texture2D class (can tell what exactly at the moment). Then, just set new Vector3 (textureWidth/someValue, textureHeigth/someValue,1) to video.mIconPlane.transform.localScale. someValue – is some number to make your GameObject’s size as you whant. It depends on Camera size.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new bee in Unity Development and developing an app in which I
Hi i am a new bee to wordpress i need to know that how
I am a new bee to Android App Development . I am practicing the
i am new-bee for AMFClient integration in ios app. if any one have good
Hi i am new bee in Unity but i have 1 year experience in
I know its kind of trivial thing to ask...but i'm a new bee to
I am a new-bee to MySQL cluster and wanted to know where exactly the
I am new bee in ANDROID , so for that I am unable to
I am new bee in Android, so for that I have only limited knowledge
Hello Everyone I'm really new bee in android and for that I'm confused to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.